K
K
Konstantin Golovin2015-07-31 11:07:34
Mobile development
Konstantin Golovin, 2015-07-31 11:07:34

UWP. How to implement a subscription in the application?

1. How do I add the ability to purchase a subscription to certain functionality in my universal application? Those. some features in the app would only become available when you purchase a subscription and for a certain period.
2. Will the subscription be valid on all devices where the program is installed?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Antoxa Zimm, 2015-08-06
@Lmontek

IMHO, not enough information, I don’t understand what UWP has to do with it, in theory there can be any application ... the question is how your application works:
a) there is a server, for example webapi, to which all / part of requests go, subscriptions can be stored there user
response to 1) you yourself determine what resources are available to the user. You also determine the start and end time for using the functionality yourself the
answer to 2) yes, you can even create a list of available functionality and, based on this, create a menu or banner with an offer to buy something
b) the application works without a server
answer to 1) when buying a subscription, save information about it (what you bought, when and for how much) and then, based on this data, block / unblock some functionality
answer to 2) it is likely that you can request information about subscriptions directly from the payment system api from the application (although I don’t like this option) for a specific user and decide what is available to the user

A
asommer, 2015-12-08
@asommer

It will be easier for you to find information about purchases in 8.x applications
In UWP, little has changed
There is a CurrentApp.LicenseInformation class
You can see an example here
(this is the first thing that caught your eye))
or here

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question