Skip to content
This repository has been archived by the owner on Mar 12, 2022. It is now read-only.

MobileAds.initialize issue #115

Open
krimster opened this issue Nov 11, 2021 · 3 comments
Open

MobileAds.initialize issue #115

krimster opened this issue Nov 11, 2021 · 3 comments

Comments

@krimster
Copy link

Hi There

I'm seeing an issue whereby my app never goes past the MobileAds.initialize line, so the app never loads hence it's stuck on the splash screen. I suspect it is due to the issue below.

googleads/googleads-mobile-flutter#429

@lucassampaio-pixelwolf
Copy link

@krimster same thing happening with me.

I do not know Kotlin, but I changed the native code from this:

MobileAds.initialize(activity) { result.success(Build.VERSION.SDK_INT) }

To this:

                try {
                    MobileAds.initialize(activity)
                } catch (e: Exception) {
                    // error
                } finally {
                    result.success(Build.VERSION.SDK_INT)
                }

And it works for now. But it is not a good solution.

@izzetemredemir
Copy link

izzetemredemir commented Nov 13, 2021

The same problem my app crashed all instances. I had to update.

It only initialize with test app id

  <meta-data            android:name="com.google.android.gms.ads.APPLICATION_ID"
            android:value="ca-app-pub-3940256099942544~3347511713"/>

@DholaSain
Copy link

I had published my 2 Apps on Playstore with this package & they were working fine and eventually, both of them stopped working & stuck on splash screen. WTH 😭😡

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

No branches or pull requests

4 participants