Bug: Admob Rewarded video with Instant App

76 views
Skip to first unread message

JoxDev

unread,
Nov 5, 2024, 1:25:21 PM11/5/24
to Google Mobile Ads SDK Developers
Hello,
Loading the rewarded video has caused the app to crash on all tested Android devices for Instant Apps.

Android OS level: 14

Device/emulator: Pixel 6 Pro

Steps to reproduce the issue:

1. Open attached project in Android Studio.
2. Change applicationId, AD_UNIT_ID and TEST_DEVICE_HASHED_ID for your test environment.
3. Launch the app as an Instant App.
4. The crash occurs after calling RewardedAd.load.

This app is an example app for testing rewarded videos for AdMob from here (https://github.com/googleads/googleads-mobile-android-examples/tree/main/kotlin/admob/RewardedVideoExample), modified to run as Instant App.

Android build:
AP1A.240305.019.A1

Android bug report:
https://drive.google.com/file/d/1-0iayy8GB6jihb03jMNGtKCc3sPpzJ4m/view?usp=sharing

AndroidStudio project:
https://drive.google.com/file/d/1-6i0iuUwEjM_qIhI5eZSK1EHBKkNQO14/view?usp=sharing

Logcat output:
2024-11-04 19:14:53.533 28848-28848 AndroidRuntime          pid-28848                            E  FATAL EXCEPTION: main
                                                                                                    Process: com.joxdev.orbia, PID: 28848
                                                                                                    java.lang.NullPointerException: Attempt to invoke virtual method 'boolean android.app.KeyguardManager.isDeviceLocked()' on a null object reference
                                                                                                        at com.google.android.gms.ads.omid.library.walking.e.run(:com.google.android.gms.policy_ads_fdr_dynamite@243799214@243799204017.685849251.685849251:615)
                                                                                                        at android.os.Handler.handleCallback(Handler.java:959)
                                                                                                        at android.os.Handler.dispatchMessage(Handler.java:100)
                                                                                                        at android.os.Looper.loopOnce(Looper.java:232)
                                                                                                        at android.os.Looper.loop(Looper.java:317)
                                                                                                        at android.app.ActivityThread.main(ActivityThread.java:8501)
                                                                                                        at java.lang.reflect.Method.invoke(Native Method)
                                                                                                        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:552)
                                                                                                        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:878)

Mobile Ads SDK Forum Advisor

unread,
Nov 5, 2024, 5:18:58 PM11/5/24
to goo...@joxdev.com, google-adm...@googlegroups.com

Hi,

Thank you for contacting the Mobile Ads SDK Support Team.

I will check with our team regarding your query and one of my team members will reach out to you once we have an update on this. Meanwhile, your patience is highly appreciated.

This message is in relation to case "ref:!00D1U01174p.!5004Q02vGiJd:ref" (ADR-00274462)

Thanks,
 
Google Logo Mobile Ads SDK Team


Reply all
Reply to author
Forward
0 new messages