User Tag List

Results 1 to 3 of 3

Thread: iOS Store Object - Request Information crashes app if change frame before response

  1. #1
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleMac Export ModuleUnicode Add-on
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    AyreGuitar's Avatar
    Join Date
    Jan 2011
    Location
    Wales, UK
    Posts
    1,113
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    iOS Store Object - Request Information crashes app if change frame before response

    Trying to add In-App Purchase to one of my apps and it's crashing my app if I don't wait for a response from App Store after requesting information on an IAP before switching to a new frame. Does the iOS Store object have to exist on other frames just in case?
    I don't want to make the player wait for the prices and descriptions to load if they want to play an existing level.
    Running MMF2 Build 256.12 (iOS Exporter Beta 1) and XCode 4.3.3 on iPod touch 2G (iOS 4.2.1) Non-Consumable purchase (in case it makes a difference)

    Perhaps I should have a Buy button that does the request (rather than at start of frame) and prevents the player leaving that frame until I receive a response? Then fill in the price and description and have the user hit the buy button again?
    Does anybody use the IAP Description from the App Store or just the Product Name & Formatted Price?

    Thanks in advance!

  2. #2
    Clickteam Clickteam
    Anders's Avatar
    Join Date
    Jun 2006
    Location
    Denmark, ┼rhus
    Posts
    3,455
    Mentioned
    4 Post(s)
    Tagged
    1 Thread(s)
    Thank you for your report.
    I see where this can happen now, thanks for pointing out that it happened when switching frames. The request still lingered after the extension object was destroyed. When the response finally went through it tried to send a message back to the then destroyed iOS object (which caused the crash).
    I now keep track of all started requests and cancel them if the iOS Store object gets destroyed.

  3. #3
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleMac Export ModuleUnicode Add-on
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    AyreGuitar's Avatar
    Join Date
    Jan 2011
    Location
    Wales, UK
    Posts
    1,113
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Andos - Great stuff! looking forward to the next Beta...

Similar Threads

  1. [BUG] IOS Store Object - IAP request crash
    By Captain_Harris in forum iOS Export Module Version 2.0
    Replies: 7
    Last Post: 7th June 2013, 07:01 PM
  2. Request Information for IAP item crashes app
    By JoKa in forum iOS Export Module Version 2.0
    Replies: 13
    Last Post: 7th March 2012, 09:01 AM
  3. iOS Store Object's "Restore transactions" crashes in MMF
    By JoKa in forum iOS Export Module Version 2.0
    Replies: 12
    Last Post: 7th February 2012, 09:17 AM
  4. change hot spot on every frame in active object
    By Bogeyman in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 1st September 2011, 12:45 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
  •