In-App Purchase Issues

Good Morning,

I've been having issues with my in-app purchase.

The in-app purchase is working. When I use the TESTFLIGHT its showing that I subscribed to the app but it's not moving to the next screen after subscribing to the app. Can someone help me? Is it the order of the code? Do you think its not saving the table?


Comments

  • kdhjr23kdhjr23 Member, PRO Posts: 43

    Here is the subscription is working but it will not proceed to the next screen.

  • uptimistikuptimistik Key Master, Member, Sous Chef, PRO Posts: 253

    Hi there!


    I would create an attribute for example 'activeSubscription' and set it to 'true' when purchased (and use Save attribute here too)

    On the scene where the purchase is made, create a rule that says 'when activeSubscription is True, Timer after .1 seconds Change Scene'

    Remember to put a 'Load attribute' behavior at the start of the game/app and you should be all set!

    GameSalad Templates and Custom Development at the Official Marketplace: http://gshelper.com

  • kdhjr23kdhjr23 Member, PRO Posts: 43

    Thanks! One last question So I should load attribute the activeSubscription?

  • uptimistikuptimistik Key Master, Member, Sous Chef, PRO Posts: 253

    GameSalad Templates and Custom Development at the Official Marketplace: http://gshelper.com

  • kdhjr23kdhjr23 Member, PRO Posts: 43

    This is my load attribute when the app starts


    This is the subscription Code:

    Does this look good to you?

  • uptimistikuptimistik Key Master, Member, Sous Chef, PRO Posts: 253

    Yes that looks ok. I would actually put this rule at the start, because when the purchase is made, we want this rule to fire first:


    GameSalad Templates and Custom Development at the Official Marketplace: http://gshelper.com

  • kdhjr23kdhjr23 Member, PRO Posts: 43

    That sucks lol it didnt work. It still didn’t move to the next screen and I moved it to the top.

  • uptimistikuptimistik Key Master, Member, Sous Chef, PRO Posts: 253

    How do you bring up the Subscription page, with a 'Change Scene' or 'Pause Scene' behavior?

    GameSalad Templates and Custom Development at the Official Marketplace: http://gshelper.com

  • kdhjr23kdhjr23 Member, PRO Posts: 43

    Change screen

  • kdhjr23kdhjr23 Member, PRO Posts: 43


    this will take me to the change scene page... It just seem like the table or the activeSUB not getting updated.

  • uptimistikuptimistik Key Master, Member, Sous Chef, PRO Posts: 253

    Ok, can you put a text display behavior in there and display game.Activesub? Do the purchase again and let me know if activeSub is changing to true or not after purchase

    GameSalad Templates and Custom Development at the Official Marketplace: http://gshelper.com

  • kdhjr23kdhjr23 Member, PRO Posts: 43

    So it never changed to true after the subscribing. It stays false

  • kdhjr23kdhjr23 Member, PRO Posts: 43

    so its not updating after the purchase

  • uptimistikuptimistik Key Master, Member, Sous Chef, PRO Posts: 253

    I've included a test project with the rule and conditions you need to use subscriptions, check out the rule that I labeled 'EDIT".

    It's different as @tant42 explains:


    "Subscriptions will return the renewal / expiration date in the field instead of 'purchased' so instead of checking for 'purchased' they should check for not 'unpurchased', 'pending', 'deferred', or 'expired'."


    Please try it like this and let me know how it goes!

    GameSalad Templates and Custom Development at the Official Marketplace: http://gshelper.com

  • kdhjr23kdhjr23 Member, PRO Posts: 43

    I got it to work!!!! THANKS SO MUCH.

Sign In or Register to comment.