User Tag List

Results 1 to 3 of 3

Thread: Good way to handle IAP timeouts?

  1. #1
    Clicker

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleXNA Export Module
    Outcast's Avatar
    Join Date
    Jan 2011
    Location
    Sweden
    Posts
    3,237
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)

    Question Good way to handle IAP timeouts?

    Do anyone know of a good way to handle timeouts for IAPs? Because of the lag to the server I now "pause" the game and show a "Loading Purchase" screen until the IAP gets a connection the apple server. But if for some reason it takes to long I would like it to abort, is there any way to do this without using a counter or something? I am afraid that could be unreliable because some users may take more time to get a connection and also if the counter is always counting up it could reach the value that I want to abort AFTER the user clicks he wants to buy and another call is made to the server to retrieve the users information. I have seen the application automatically pauses when the prompt appear, but between those the counter goes up and I dont know of a way to detect when a response is coming in so I could reset the counter in that case. Is there a good smooth way to handle this?

  2. #2
    Clicker

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export ModuleUnicode Add-on
    mobichan's Avatar
    Join Date
    Oct 2007
    Location
    Buffalo, NY
    Posts
    3,310
    Mentioned
    28 Post(s)
    Tagged
    0 Thread(s)
    I basically have a variable count up (as you said) and cancel the loading indicator after 4 seconds have passed if no response was received from the Apple servers. This is probably the simplest way and what most games tend to do. You could try posting a message that says "We could not reach Apple's servers. Please make sure you have a good internet connection and try again."

    The only other feature we could use to minimize the wait would be to have some way to tell if there is a network connection or not. Then we could just disable the IAP process and leave the timeouts to only happen when your connection is truly bad. Right now, timeouts basically cover both cases.

  3. #3
    Clicker

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleXNA Export Module
    Outcast's Avatar
    Join Date
    Jan 2011
    Location
    Sweden
    Posts
    3,237
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)
    Hm is there an event then to cancel the request after you have initiated a request for payment? I cant find any :s I guess you could just "ignore" to cancel the request, but I am afraid it will lie idle until the next time the user gets a connection. In any case that is what I have gathered from what happened to me here: http://community.clickteam.com/threads/83584-Testing-inapp-just-keeping-popping-up

Similar Threads

  1. Best way to handle audio?
    By Outcast in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 20th June 2012, 05:59 PM
  2. String can't handle it
    By ProdigyX in forum Android Export Module Version 2.0
    Replies: 5
    Last Post: 9th December 2011, 09:44 PM
  3. Where is a good place to get good sounds?
    By delta9857 in forum The Games Factory 2 - Technical Support
    Replies: 4
    Last Post: 24th November 2010, 11:34 PM
  4. How does HWA handle layers?
    By alxmrg in forum Hardware Accelerated Runtime
    Replies: 8
    Last Post: 6th June 2009, 05:15 PM
  5. How can i handle the layers?
    By Downup2 in forum Multimedia Fusion 2 - Technical Support
    Replies: 6
    Last Post: 27th May 2009, 02:22 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •