Handling No Internet for IAP?

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

  • NNterprisesNNterprises Member, PRO Posts: 387
    edited September 2016

    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

  • ArmellineArmelline Member, PRO Posts: 5,397

    @NNterprises Callback = 0 means there has been no attempt to fill the purchase table. It will return -1 on no internet.

  • NNterprisesNNterprises Member, PRO Posts: 387
    edited September 2016

    @Armelline thanks bud for the clarification my above post has been edited^^^

  • MoikMoik Member, PRO Posts: 257

    Nice, I'll give that a try! Thanks guys!

  • ArmellineArmelline Member, PRO Posts: 5,397

    My free template does just this, I should probably also point out.

Sign In or Register to comment.