Using RewardedAd.Load() in a Unity instant app causes a crash -since last week

205 views
Skip to first unread message

Clovser Games

unread,
Nov 4, 2024, 4:05:14 PMNov 4
to Google Mobile Ads SDK Developers
I have a game that's been running stable but since last week, it started to crash. There was no change from my side.

-It is an instant game in Unity.
-Fatal crash happens every time RewardedAd.Load() is called.
-Tried updating the ads, play games, instant Unity packages to the latest published. Problem persists between my initial setup and the updated sdks & Unity version.

The logcat is as follows:

 FATAL EXCEPTION: main
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)

ksvslk

unread,
Nov 8, 2024, 11:27:56 AMNov 8
to Google Mobile Ads SDK Developers
Same crash happening - very huge amout of users. Only instant app - seems to be the wrong context which cannot get the KeyguardManager. Started happening from the second half of October. I guess Google Play Games changed the sandbox the instant app is running on or something and KeyguardManager is always null.

Mobile Ads SDK Forum Advisor

unread,
Nov 8, 2024, 1:15:17 PMNov 8
to ind...@gmail.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.!5004Q02vGisd:ref" (ADR-00274862)

Thanks,
 
Google Logo Mobile Ads SDK Team


Reply all
Reply to author
Forward
0 new messages