Home > Blockchain >  Identify apple user:subscription pair on a server
Identify apple user:subscription pair on a server

Time:12-12

I’m developing IOS app which do calls to the server. I want to allow users to use web services from ios app only after subscription was made, no login required

How to identify whether IOS REST caller have active subscription, without “login with apple” ? I saw several apps is able to do “premium” calls to server right after subscription was made.

CodePudding user response:

You could do it this way:

  1. An account ID is automatically created when the app is started for the first time. This happens unnoticeably in the background.

  2. The account ID is sent with every API request. The server then only checks whether this account ID has a premium status.

  3. If the user buys the premium status, update the account ID on the server side.

This is just a short description without any advice on security and best practices. Please implement this solution only if you know what you are doing. By the way, this approach is also used by ivpn.net.

  • Related