Callback attribute when requesting purchase data is never -1
gfb08174
Member, PRO Posts: 69
I used some parts of @Armelline 's template and tutorial to integrate in app purchases into my app. When adhoc-ing in Sandbox, the value of my callback attribute never drops to -1, even when I disable wifi and my mobile network coverage. Only when I connect to wifi or my network will the value move from 0 to 1 when I trigger the IAP, but never to -1.
How do I solve this? -1 is supposed to be the callback's value when there is an error (such as no network connection), but my callback's value never goes there, even when I simulate no coverage.
What am I doing wrong?
Comments
Is your callback attribute an integer?
Mental Donkey Games
Website - Facebook - Twitter
Yes you need to make it a real attribute.
Guru Video Channel | Lost Oasis Games | FRYING BACON STUDIOS
@Lost_Oasis_Games @NipaDidIt oh silly me... Problem solved!
A integer should do a negative number but for some reason it doesn't when related to network behaviors.
Guru Video Channel | Lost Oasis Games | FRYING BACON STUDIOS
I never had any issue using integers for IAP but haven't tried the networking behaviours. Perhaps this is a bug that's crept in in a more recent version?
Contact me for custom work - Expert GS developer with 15 years of GS experience - Skype: armelline.support
I read in a thread someone mentioned this.
Guru Video Channel | Lost Oasis Games | FRYING BACON STUDIOS