Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ti.Admob crashes on launch of the application. #306

Open
curtx opened this issue Apr 9, 2022 · 10 comments
Open

Ti.Admob crashes on launch of the application. #306

curtx opened this issue Apr 9, 2022 · 10 comments

Comments

@curtx
Copy link

curtx commented Apr 9, 2022

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!

@deckameron
Copy link

Hi @curtx ,

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

@curtx
Copy link
Author

curtx commented Apr 10, 2022

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.

@Manuelapr
Copy link

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.

@curtx
Copy link
Author

curtx commented Jul 9, 2022

@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

@Manuelapr
Copy link

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

Thanks

@curtx
Copy link
Author

curtx commented Jul 9, 2022

@Manuelapr
Copy link

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?

@curtx
Copy link
Author

curtx commented Jul 14, 2022

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

@Manuelapr
Copy link

Manuelapr commented Jul 14, 2022

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

@Astrovic
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants