Search Unity

How to Check Subscription is Active

Discussion in 'Scripting' started by Alexander21, Aug 3, 2019.

  1. Alexander21

    Alexander21

    Joined:
    Dec 14, 2015
    Posts:
    302
    Hi All


    I have to check if the user is subscribed or not. I want to do it android and also ios.
    How can i do it?.


    Thanks in Advance.
     
  2. Subscribed to what exactly?
     
  3. Alexander21

    Alexander21

    Joined:
    Dec 14, 2015
    Posts:
    302
    In my app there are four Auto Renewal Monthly Subscription.

    1 Month, 3 Months, 6 Months,12 Months..

    While starting a game. I have to check Whether the user subscribed to any above pack...

    if user subscribed then we can proceed for the game or else.. ask the user to subscribe....
     
  4. Well, if you need to ask this question, I doubt you're ready to make such a service.

    With that said.
    You can use Unity IAP to sell those packages I guess and I guess there is a way to check if people bought them. And/or you can have your own server so you can store people's account and when they purchase you set in your own database that they subscribed and other data (for example what is the expiration date).
    When people fire up your game you check with your server if they are logged in and if they still have a valid subscription.

    I won't go in more details, it's a very advanced and long subject.