Handling No Internet for IAP?
Moik
Member, PRO Posts: 257
Are there any tutorials which address the possibility of the user not having internet access for calling the IAP prices? Right now my IAP buttons simply stay blank. I'd like to flip them to be a Check button if they couldn't get the prices in time. In my head, I think I would just check if the purchasetable cells are blank, but I'm not sure which variable types can use a blank cell as a proper state to trigger an action off of, or what counts as a blank cell when filling out the check.
Comments
I have somewhere (not in front of me right now sorry), when purchase or restore button is pressed do the callback. If callback = -1, change button text to NO INTERNET.
But yea I go on the callback since I fill my purchasetable in the opening scene and don't mess with it
@NNterprises Callback = 0 means there has been no attempt to fill the purchase table. It will return -1 on no internet.
Contact me for custom work - Expert GS developer with 15 years of GS experience - Skype: armelline.support
@Armelline thanks bud for the clarification my above post has been edited^^^
Nice, I'll give that a try! Thanks guys!
My free template does just this, I should probably also point out.
Contact me for custom work - Expert GS developer with 15 years of GS experience - Skype: armelline.support