ti.admob icon indicating copy to clipboard operation
ti.admob copied to clipboard

Ti.Admob crashes on launch of the application.

Open curtx opened this issue 3 years ago • 10 comments

I tried 2.5.1 and 3.0.0 for IOS using titanium sdk 10.1.1.GA. The app launches and then crashes at start screen. After debugging I found this error

pthread_exit() called from a thread not created by pthread_create()

Please help!

curtx avatar Apr 09 '22 11:04 curtx

Hi @curtx ,

Try using this one and see it solves the issue for you. Best of luck.

deckameron avatar Apr 09 '22 13:04 deckameron

Hi @deckameron ,

Thanks for the reply. I tried the 4.8.0 version on both simulator and iPhone 7, but still app is crashing at launch.

curtx avatar Apr 10 '22 07:04 curtx

Hi, have you figured it out? I'm having the same problem and have tried the admob version 4.0.0 and the 4.8.0.

Manuelapr avatar Jul 08 '22 18:07 Manuelapr

@Manuelapr Yes, the issue can be resolved by setting up Info. list correctly. Once the Info. plist is set up correctly with keys mentioned in the docs

curtx avatar Jul 09 '22 05:07 curtx

Thanks for you replay. Can you guide me on how to set up the info.plist file?

Thanks

Manuelapr avatar Jul 09 '22 07:07 Manuelapr

Here use this document to set keys correctly https://developers.google.com/ad-manager/mobile-ads-sdk/ios/quick-start#update_your_infoplist

curtx avatar Jul 09 '22 08:07 curtx

Hi, thanks for the replay.

Using that link I managed to make it to work. At least the app don't closes any mor 😁

But now I get this message:

Failed to read publisher's account configuration; try again later.

I have used the example code that came with the module and have set in all places the keys of my account and ad.

What could I bee missing with this error?

Manuelapr avatar Jul 11 '22 16:07 Manuelapr

Yes, now you need to set up your own admob account and provide proper settings especially Admob UnitID

curtx avatar Jul 14 '22 10:07 curtx

Hi @curtx . Thanks for the replay. I have tried to set the id's in this places shown in the code of the example that cames with the module (images atached).

I have also posted the ID's of my admob account.

My problem is that I get allways the message:

"Failed to read publisher's account configuration; try again later."

on the admob.requestConsentInfoUpdateWithParameters method.

I really don't know what I'm missing.

Captura de ecrã 2022-07-14, às 22 47 51 Captura de ecrã 2022-07-14, às 22 48 09 Captura de ecrã 2022-07-14, às 22 48 21 Captura de ecrã 2022-07-14, às 22 48 29

Captura de ecrã 2022-07-14, às 22 45 01 Captura de ecrã 2022-07-14, às 22 45 13 Captura de ecrã 2022-07-14, às 22 45 25

Manuelapr avatar Jul 14 '22 21:07 Manuelapr

You are confusing AdMob ad Unit ID with AdMob app ID (https://support.google.com/admob/answer/7356431).

AdMob ad Unit ID is the one in this format ca-app-pub-xxxxxxxxxxxxxxxx~xxxxxxxxxx and you must enter it only in the tiapp.xml in the GADApplicationIdentifier key.

<ios>
    <plist>
        <dict>
            <key>GADApplicationIdentifier</key>
            <string>ca-app-pub-xxxxxxxxxxxxxxxx~xxxxxxxxxx</string> 
        </dict>
    </plist>
</ios>

The AdMob ad Unit ID is the ad that you create in your AdMob account for your app, and it is in the format ca-app-pub-xxxxxxxxxxxxxxxx/xxxxxxxxxx and you must insert it in

Admob.createView({
   adUnitId: 'app-pub-xxxxxxxxxxxxxxxx/xxxxxxxxxx'
});

For example, to create a banner in your AdMob account you must follow these instructions: https://support.google.com/admob/answer/7311346

Astrovic avatar Nov 11 '22 19:11 Astrovic