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
Here is the subscription is working but it will not proceed to the next screen.
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!
Thanks! One last question So I should load attribute the activeSubscription?
yes, Load activeSubscription.
This is my load attribute when the app starts
This is the subscription Code:
Does this look good to you?
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:
That sucks lol it didnt work. It still didn’t move to the next screen and I moved it to the top.
How do you bring up the Subscription page, with a 'Change Scene' or 'Pause Scene' behavior?
Change screen
this will take me to the change scene page... It just seem like the table or the activeSUB not getting updated.
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
So it never changed to true after the subscribing. It stays false
so its not updating after the purchase
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!
I got it to work!!!! THANKS SO MUCH.