Xcode IOS crashes when requesting IAP info

Welcome to our brand new Clickteam Community Hub! We hope you will enjoy using the new features, which we will be further expanding in the coming months.

A few features including Passport are unavailable initially whilst we monitor stability of the new platform, we hope to bring these online very soon. Small issues will crop up following the import from our old system, including some message formatting, translation accuracy and other things.

Thank you for your patience whilst we've worked on this and we look forward to more exciting community developments soon!

Clickteam.
  • Hmm, i'm speaking about the IAP object. When using "request information for product", 1 chance out of 10 it will crashes instantly. Even if you only ask one product. I'm testing different methods...

    Currently i do ask for IAP products when the user open the shop and scroll to the IAP part. Then once the IAP are loaded and ready to buy, i ask for admob video reward. And 1 time on10 it crashes.

    Now, I'm trying a new version were i ask for IAP products as soon as the user open the shop, then ask for admob video only when the user scroll to the part of the shop where you can play a video. Fingers crossed!

    Did the solution you are trying solve with the issue?

  • No, it's still crashing randomly as soon as it asks for the info, so i guess it's something we can't fix on our side. Might be a Fusion issue....

    Thank you Dobermann for sharing! I really hope it can be solved soon.
    the amount of crashes on the IAP frame is very high. These are the ones reported in the last 30 days only:
    Please login to see this attachment.

    I guess all we can do is wait and let Fernando do his magic X)

    Fernando if there is anything you want us to test please let us know :)

  • Unfortunately, this problem still exists and has a very a high rate of crashing, especially if its requested more than once per session. :(
    Even a very simple setup with one IAP to request, it can still crash...

    Admob doesn't seem to make much difference, it will crash with or without it.

    Game/App developer, artist and a community contributor.
    You can support my work on: Please login to see this link.

    Edited 2 times, last by Linky (April 19, 2023 at 1:37 AM).

  • Unfortunately, this problem still exists and has a very a high rate of crashing, especially if its requested more than once per session. :(
    Even a very simple setup with one IAP to request, it can still crash...

    Admob doesn't seem to make much difference, it will crash with or without it.


    Asking for a product's price many times may bring this, my recommendation is to ask once and keep track of your SKUs and prices.

    Also, please grab me this report and send it to me for me to check and see if something have changed.

    Note that read for purchased SKUs is always receivable and never creates crashes

    Regards,


    Fernando Vivolo

    ... new things are coming ...

    Edited once, last by Fernando (April 19, 2023 at 3:55 PM).

  • Asking for a product's price many times may bring this, my recommendation is to ask once and keep track of your SKUs and prices.


    Thanks, but I dont see how requesting one time per session would work if you switched between frames? I mean unless the whole game is made in one frame, I would still need to request items info every time I enter a frame that has some kind of an IAP shop. (or purchasing\restoring won't work)

    Making the whole game in one frame now after it is already finished or late in development is kinda hard and time consuming...
    If this is not what you exactly meant, please let me know, as the IAP request problem has a very high crash rate which increases more and more with every request.

    Game/App developer, artist and a community contributor.
    You can support my work on: Please login to see this link.

    Edited once, last by Linky (April 19, 2023 at 5:13 PM).

  • Thanks, but I dont see how requesting one time per session would work if you switched between frames? I mean unless the whole game is made in one frame, I would still need to request items info every time I enter a frame that has some kind of an IAP shop. (or purchasing\restoring won't work)

    Making the whole game in one frame now after it is already finished or late in development is kinda hard and time consuming...
    If this is not what you exactly meant, please let me know, as the IAP request problem has a very high crash rate which increases more and more with every request.

    if it happens often enough, could you get a crash report for fernando to take a look at, as this is something that should definitely be fixed if its actually a bug.

  • Asking for a product's price many times may bring this, my recommendation is to ask once and keep track of your SKUs and prices.

    Also, please grab me this report and send it to me for me to check and see if something have changed.

    Note that read for purchased SKUs is always receivable and never creates crashes


    and

    if it happens often enough, could you get a crash report for fernando to take a look at, as this is something that should definitely be fixed if its actually a bug.


    Full log, it crashes right after it tries sending events to store:

    In terms of where it crashes, it can be random, but it usually messes with object selection, the weird thing that testing on a real device has an even higher crash rate compared to emulator.
    Please login to see this picture.

    Game/App developer, artist and a community contributor.
    You can support my work on: Please login to see this link.

  • i need the file report actually


    This one?

    Game/App developer, artist and a community contributor.
    You can support my work on: Please login to see this link.

  • Oh, interesting... Does that mean I must not use any value comparison with IOS Store object?

    Yes you can only those involving an index that exist and none that need s to created, and this is report from your last block, not previous one that point to inapp, so i will need is a full log as file (zipped is better) that show the first report you did.

    Regards,


    Fernando Vivolo

    ... new things are coming ...

  • So if this helps, anyone who is facing the same issues, from extensive testing, it seems like if you had a foreach loop running while the requests are being processed, there is a chance of the app crashing and with each loop the more and more chances, so for example, if you always run the foreach loop, there is a bigger chance of your app to crash, the more you do inside the loop, like value comparison, and especially string based manipulations, the bigger the chance, now combine that with qualifier use and object selection and before you know it, you almost have a guaranteed crash every time you attempt a request

    In terms of my case, the crash was related to a group that handles Text and Icon Overlays, which is triggered via a foreachloop, which was constantly running every frame for one object
    What I did was to disable that group 1 second before I start requesting for the SKUs, after all requests are done, I enable the group again and generally unfreeze the app

    So what you want to do is to basically try to not run anything else while your packs are being requested, especially when it comes to foreachloops, so you must likely need to pause your app with maybe an indication to the player that the shop is loading until requests are done

    This is a very annoying workaround, but I think this may be the only way handle such problem currently.

    Game/App developer, artist and a community contributor.
    You can support my work on: Please login to see this link.

  • Hey, I really don't want to be annoying about this, but as this is quite an important thing, any changes to the iOS Store object to fix the crashing bug for the upcoming 295 update? while the loading screen workaround I mentioned earlier kinda works, it's not ideal at all...
    I really hope this gets more attention because it's quite important, thanks in advance. :D

    Game/App developer, artist and a community contributor.
    You can support my work on: Please login to see this link.

  • No, i still get random crashes, it seems to happen less often (or is it just me) but they still occur... :(


    After build 295 they no longer crash the app I worked on no matter what, it was related to another problem actually that interfering related to strings.
    How do you handle info retrieval? it most be done correctly or you would still get crashes from incorrect use, maybe screenshot your events?

    Game/App developer, artist and a community contributor.
    You can support my work on: Please login to see this link.

  • No, i still get random crashes, it seems to happen less often (or is it just me) but they still occur... :(

    Sadly yes, the crash still happens on version 295.5
    Please login to see this attachment.

    I have attached a log of the moment of crash it seems the IAP request goes through but crashes after Please login to see this link.

  • Sadly yes, the crash still happens on version 295.5
    Please login to see this attachment.

    I have attached a log of the moment of crash it seems the IAP request goes through but crashes after Please login to see this link.

    This should be fixed for next beta, but i need some info from you.

    How many products you ask for price and how you do it?

    One action after another?

    Regards,


    Fernando Vivolo

    ... new things are coming ...

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!