Fail to reg listener to AppStateEventNotifier.AppStateChanged

10 views
Skip to first unread message

Tran Tri

unread,
Dec 24, 2024, 1:32:04 PM (22 hours ago) Dec 24
to Google Mobile Ads SDK Developers
iI try to show some ads on my unity app, when i try add listener to AppStateEventNotifier.AppStateChanged for show App open ads, but it always throw exception below:
2024/12/24 16:49:35.799 13091 13110 Error Unity Caused by: java.lang.ClassNotFoundException: androidx.lifecycle.DefaultLifecycleObserver

I use unity 6 (lts verion), 
goolge mobile ads 9.4.0 (i tried update lastest version but nothing change)
any help?

Mobile Ads SDK Forum Advisor

unread,
Dec 24, 2024, 3:03:31 PM (20 hours ago) Dec 24
to tlmtr...@saigonpntech.com, google-adm...@googlegroups.com
Hi,

Our sample app runs without an issue on both iOS and Android, and displays the app state correctly when going background and foreground. Please review your implementation or use our sample app as a reference. If you are still encountering problems, please provide us a sample project demonstrating the issue.
 
This message is in relation to case "ref:!00D1U01174p.!5004Q02vGqPZ:ref" (ADR-00279752)

Thanks,
 
Google Logo Mobile Ads SDK Team

Feedback
How was our support today?

rating1    rating2    rating3    rating4    rating5


 


Reply all
Reply to author
Forward
0 new messages