invertase / react-native-google-mobile-ads

React Native Google Mobile Ads enables you to monetize your app with AdMob.
https://docs.page/invertase/react-native-google-mobile-ads
Other
688 stars 139 forks source link

Android interstitials closed bug #332

Closed ehdudakswo-dyj closed 1 year ago

ehdudakswo-dyj commented 1 year ago

What happened?

After running an Android interstitial advertisement, press the home button and run the app again, the advertisement is automatically closed.

Existing Android native apps don't have this bug. It seems like a bug that only occurs in React Native, and I wonder if there is a solution.

Platforms

Android, but have not tested behavior on iOS

React Native Info

System:
    OS: Windows 10 10.0.19044
    CPU: (8) x64 Intel(R) Core(TM) i7-7700HQ CPU @ 2.80GHz
    Memory: 419.11 MB / 7.91 GB
Binaries:
    Node: 16.17.0 - C:\Program Files\nodejs\node.EXE
    Yarn: 1.22.10 - ~\AppData\Roaming\npm\yarn.CMD
    npm: 8.15.1 - C:\Program Files\nodejs\npm.CMD
    Watchman: Not Found
SDKs:
    Android SDK: Not Found
    Windows SDK:
      AllowDevelopmentWithoutDevLicense: Disabled
IDEs:
    Android Studio: AI-213.7172.25.2113.9123335
    Visual Studio: Not Found
Languages:
    Java: 11.0.11 - C:\Program Files\Android\Android Studio\jre\bin\javac.EXE
npmPackages:
    @react-native-community/cli: Not Found
    react: 18.1.0 => 18.1.0
    react-native: 0.70.1 => 0.70.1
    react-native-windows: Not Found
npmGlobalPackages:
    *react-native*: Not Found

Are your using Typescript?

package.json

"react-native-google-mobile-ads": "^8.2.2",

app.json

"react-native-google-mobile-ads": {
    "android_app_id": "ca-app-pub-9242323398881981~7849614012",
    "ios_app_id": ""
  }

ios/Podfile

No response

android/build.gradle

No response

android/app/build.gradle

No response

android/settings.gradle

No response

AndroidManifest.xml

No response

github-actions[bot] commented 1 year ago

Hello 👋, to help manage issues we automatically close stale issues.

This issue has been automatically marked as stale because it has not had activity for quite some time.Has this issue been fixed, or does it still require attention?

This issue will be closed in 15 days if no further activity occurs.

Thank you for your contributions.

duytn-zens commented 1 year ago

Same issue here