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.
  • tk22 that is great, just as for information you can save the information from all output (which is the one I am looking for) as text file which will allow me to see the whole tree of crash, if you can do this and present here will be amazing, also you if you can add when is this occurring, steps, situation (while is jumping frames, etc.)

    The crash happens after changing frames (next frame or previous frame)-> Request information for IAP -> Crash
    There are two different crashes that happen on the IAP frame one common and one rare:

    This is the more common one:

    This is the more rare:

    More information
    CTF 2.5: Build R293.10
    Xcode: 12.0
    Phone for testing: iPhone X (happens for iphone 6)
    iOS: 15.3.1 and 12.5

    If you need more information please let me know

  • I think the answer from server is being received when the object is being destroyed, I will check, but locally never got a crash, that is why I need is your output (the bottom right view that you show me in the images), when this crash happens to you locally, grab the whole content from this view and zip in a file for me, thanks in advance.

    Regards,


    Fernando Vivolo

    ... new things are coming ...

  • I think the answer from server is being received when the object is being destroyed, I will check, but locally never got a crash, that is why I need is your output (the bottom right view that you show me in the images), when this crash happens to you locally, grab the whole content from this view and zip in a file for me, thanks in advance.

    Thank you Fernando. I have zipped the console log output and also Thread debug here: Please login to see this link.

    I have a lot of extensions on that frame maybe that has anything do to with the issue?
    iOS Store
    iOS Plus Object
    iOS
    AdMob
    Get Object
    String Parser
    String tokenizer
    Multiple Touch
    Ini

    Dobermann which ones do you have in common?


  • I use those from your list:
    iOS Store
    iOS
    AdMob
    Get Object
    String Parser
    Multiple Touch
    Ini


  • Thanks for the information, it doesn't show any crash in the log output view. I see your crash report though, have a doubt, are you having the AdMob ON while processing InApp?

    Regards,


    Fernando Vivolo

    ... new things are coming ...

  • Thanks for the information, it doesn't show any crash in the log output view. I see your crash report though, have a doubt, are you having the AdMob ON while processing InApp?

    Yes, I have Admob on that frame. But what do you mean by ON? Is requesting the ad a problem or showing it is the problem?
    I disabled all Ads in the app (on all frames) and still got the crash though :O

    Thread debug log:

    Thread debug log:


    [/CODE]

  • Something went wrong with copying and pasting XD
    Anyways this is the thread debug log clearer:

  • Any update on this Fernando?

    In my case i don't load admob until inapp request is done with items and prices response, so i doubt it has something to do with admob.


    I changed the code to only show the banner ad when the IAP request and response are done but still facing the same problem

  • Any update on this Fernando?


    I changed the code to only show the banner ad when the IAP request and response are done but still facing the same problem

    Yes, i was saying that even without admob request or any get pending, the crash still happens... Something i haven't tested, is to don't make any admob request at all instead of waiting for the iap request to be done. But to me, it seems to crash as soon as the request is sent, it seems to don't wait for any response, just the sending makes the app to crash randomly.

  • In short, i will be able to debug in the latest iOS firmware version in devices and I hope to see something, but please collect the crash and try to run in your project this way it can point to any code error.

    Regards,


    Fernando Vivolo

    ... new things are coming ...

  • Does anyone have found a solution to this crash?

    There is a full overhaul undergoing in AdMob, and this crash happens when you request ads in a frame and try to use in a different one, or you are asking for show and the interstitial is not fully loaded. Avoid this by using "On Received Ad" condition

    Regards,


    Fernando Vivolo

    ... new things are coming ...

  • There is a full overhaul undergoing in AdMob, and this crash happens when you request ads in a frame and try to use in a different one, or you are asking for show and the interstitial is not fully loaded. Avoid this by using "On Received Ad" condition

    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!

    Edited 4 times, last by Dobermann (January 17, 2023 at 2:55 PM).

Participate now!

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