User Tag List

Results 1 to 9 of 9

Thread: IAPs request information crash

  1. #1
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export Module
    Captain_Harris's Avatar
    Join Date
    Aug 2011
    Posts
    336
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Exclamation IAPs request information crash

    my event is the follow:

    start of frame > request information from "com.name.iap1"

    it works fine if the device have a internet connection. without the connection the app crashes.

  2. #2
    Clickteam Clickteam
    Olivier's Avatar
    Join Date
    Jun 2006
    Posts
    3,000
    Mentioned
    9 Post(s)
    Tagged
    1 Thread(s)
    I believe that you should only attempt to request product information if the condition "Payments can be made" of the iOS Store object is TRUE. We had a thread mentioning this, but I can't find it anymore. So you'd have to use either of the events below:
    Code:
    • Start of Frame
    + iOS Store: Can payments be made
    --> iOS Store request product info
    
    • iOS Store: Can payments be made
    + Only one action when the event loops
    --> iOS Store request product info

  3. #3
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export Module
    Captain_Harris's Avatar
    Join Date
    Aug 2011
    Posts
    336
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    With "payments can be made" the app is still crashing.

    here the Xcode output:

    CRASH: *** -[NSPlaceholderString initWithString:]: nil argument
    2013-05-29 10:09:09.853 Break_a_Doodle_iPhone.[4292:907] Stack Trace: (
    0 CoreFoundation 0x32b162bb <redacted> + 186
    1 libobjc.A.dylib 0x3a83e97f objc_exception_throw + 30
    2 CoreFoundation 0x32b161c5 <redacted> + 0
    3 Foundation 0x333c4619 <redacted> + 92
    4 Break_a_Doodle_iPhone. 0x000c7f7f -[CRuniOSStore request:didFailWithError:] + 110
    5 StoreKit 0x348d0163 <redacted> + 174
    6 libdispatch.dylib 0x3ac5611f <redacted> + 10
    7 libdispatch.dylib 0x3ac554b7 <redacted> + 22
    8 libdispatch.dylib 0x3ac5a1bd <redacted> + 224
    9 CoreFoundation 0x32ae9f3b <redacted> + 1290
    10 CoreFoundation 0x32a5cebd CFRunLoopRunSpecific + 356
    11 CoreFoundation 0x32a5cd49 CFRunLoopRunInMode + 104
    12 GraphicsServices 0x366352eb GSEventRunModal + 74
    13 UIKit 0x34972301 UIApplicationMain + 1120
    14 Break_a_Doodle_iPhone. 0x0006a443 main + 74
    15 Break_a_Doodle_iPhone. 0x0005c8c0 start + 40
    )
    2013-05-29 10:09:09.861 Break_a_Doodle_iPhone.[4292:907] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[NSPlaceholderString initWithString:]: nil argument'
    *** First throw call stack:
    (0x32b162a3 0x3a83e97f 0x32b161c5 0x333c4619 0xc7f7f 0x348d0163 0x3ac5611f 0x3ac554b7 0x3ac5a1bd 0x32ae9f3b 0x32a5cebd 0x32a5cd49 0x366352eb 0x34972301 0x6a443 0x5c8c0)
    libc++abi.dylib: terminate called throwing an exception
    (lldb)

  4. #4
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export Module
    Captain_Harris's Avatar
    Join Date
    Aug 2011
    Posts
    336
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Here my complete code:

    -start of Frame
    +can Payment be made ?
    ->request information for "com.company.app.item1"
    request information for "com.company.app.item2"

    -on request response for "com.company.app.item1"
    -> set string to "ProductFormattedPrice$( "iOS Store" )"

    -on request response for "com.company.app.item2"
    -> set string to "ProductFormattedPrice$( "iOS Store" )"

    -user klicks on button "Buy 1"
    ->request payment for "com.company.app.item1"

    -user klicks on button "Buy 2"
    ->request payment for "com.company.app.item2"

    -on payment processed for "com.company.app.item1"
    ->set value item 1 to 1

    -on payment processed for "com.company.app.item2"
    ->set value item 2 to 2

  5. #5
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export Module
    Captain_Harris's Avatar
    Join Date
    Aug 2011
    Posts
    336
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    IAPs request information crash

    No ideas ?

  6. #6
    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)
    Not sure, but perhaps you don't want to request both IAP in one action:
    ->request information for "com.company.app.item1"
    request information for "com.company.app.item2"

  7. #7
    Clickteam Clickteam
    Olivier's Avatar
    Join Date
    Jun 2006
    Posts
    3,000
    Mentioned
    9 Post(s)
    Tagged
    1 Thread(s)
    I can request several product IDs simultaneously without problems. I'm using the iOS exporter b257 beta 9 and I don't experience any crash with the iOS Store object. Which version are you using Captain_Harris?

    Maybe try with a blank app and with minimal objects to make sure that the problem does come from the iOS Store object.

  8. #8
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export Module
    Captain_Harris's Avatar
    Join Date
    Aug 2011
    Posts
    336
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    IAPs request information crash

    I have tried with anders example file from the IAP Guide Thread. the same problem.

  9. #9
    Clickteam Clickteam
    Anders's Avatar
    Join Date
    Jun 2006
    Location
    Denmark, Århus
    Posts
    3,456
    Mentioned
    5 Post(s)
    Tagged
    1 Thread(s)

Similar Threads

  1. iOS Store Object - Request Information crashes app if change frame before response
    By AyreGuitar in forum iOS Export Module Version 2.0
    Replies: 2
    Last Post: 18th September 2012, 08:42 AM
  2. testing IAPs
    By DTownTony in forum iOS Export Module Version 2.0
    Replies: 12
    Last Post: 27th August 2012, 10:20 PM
  3. 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
  4. [Request] Retrieve information from Weather Gadget
    By RobertRule in forum Extension Development
    Replies: 4
    Last Post: 17th May 2010, 09:11 AM

Tags for this Thread

Posting Permissions

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