Search Unity

  1. Calling all beginners! Join the FPS Beginners Mods Challenge until December 13.
    Dismiss Notice
  2. It's Cyber Week at the Asset Store!
    Dismiss Notice

How to Check Subscription is Active

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

  1. Alexander21

    Alexander21

    Joined:
    Dec 14, 2015
    Posts:
    220
    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. Lurking-Ninja

    Lurking-Ninja

    Joined:
    Jan 20, 2015
    Posts:
    4,633
    Subscribed to what exactly?
     
  3. Alexander21

    Alexander21

    Joined:
    Dec 14, 2015
    Posts:
    220
    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. Lurking-Ninja

    Lurking-Ninja

    Joined:
    Jan 20, 2015
    Posts:
    4,633
    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.