Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

[IMA SDK] Crash when no WebView is installed

56 views
Skip to first unread message

Md Imran Choudhury

unread,
Oct 10, 2024, 5:13:38 AM10/10/24
to Interactive Media Ads SDK
Hello, 
This crash is reported by Firebase Crashlytics for my app on production, I don't have the associated media but I guess on ads click will make the app crash on devices having no WebView installed.

Version:
ExoPlayer 2.10.6

Devices that reproduce the issue:
Sony TV [Bravia 4K GB ATV3]
Sumitomo Electric TV [XA401]

Android version: 
Android 9 & Android 11

Devices that do not reproduce the issue:
AndroidTV devices having WebView installed.

Reproducible in the demo app?
Not tested

Reproduction steps
Click on ads

Expected result
The media plays successfully

Actual result
The app crashes with the following stacktrace:
Caused by android.webkit.WebViewFactory$MissingWebViewPackageException: Failed to load WebView provider: android.content.pm.PackageManager$NameNotFoundException: Application package com.google.android.webview not found
       at android.webkit.WebViewFactory.getWebViewContextAndSetProvider(WebViewFactory.java:389)
       at android.webkit.WebViewFactory.getProviderClass(WebViewFactory.java:402)
       at android.webkit.WebViewFactory.getProvider(WebViewFactory.java:252)
       at android.webkit.WebView.getFactory(WebView.java:2576)
       at android.webkit.WebView.ensureProviderCreated(WebView.java:2570)
       at android.webkit.WebView.setOverScrollMode(WebView.java:2638)
       at android.view.View.<init>(View.java:5321)
       at android.view.View.<init>(View.java:5467)
       at android.view.ViewGroup.<init>(ViewGroup.java:697)
       at android.widget.AbsoluteLayout.<init>(AbsoluteLayout.java:56)
       at android.webkit.WebView.<init>(WebView.java:413)
       at android.webkit.WebView.<init>(WebView.java:355)
       at android.webkit.WebView.<init>(WebView.java:337)
       at android.webkit.WebView.<init>(WebView.java:324)
       at android.webkit.WebView.<init>(WebView.java:314)
       at com.google.ads.interactivemedia.v3.internal.adz.<init>(IMASDK:1)
       at com.google.ads.interactivemedia.v3.internal.aeb.<init>(IMASDK:53)
       at com.google.ads.interactivemedia.v3.internal.ach.<init>(IMASDK:14)
       at com.google.ads.interactivemedia.v3.internal.ach.<init>(IMASDK:4)
       at com.google.ads.interactivemedia.v3.api.ImaSdkFactory.createAdsLoader(IMASDK:12)
       at com.xyz.video.xyztvapp.ssai.RTVDaiAdsLoader.<init>(RTVDaiAdsLoader.kt:57)
       at com.xyz.video.xyztvapp.ssai.RTVDaiAdsLoader$Builder.build(RTVDaiAdsLoader.kt:169)
       at com.xyz.video.xyztvapp.presentation.ui.playback.ExoPlayerAdapter.onCreateMediaSource(ExoPlayerAdapter.kt:449)
       at com.xyz.video.xyztvapp.presentation.ui.playback.ExoPlayerAdapter.prepareMediaForPlaying(ExoPlayerAdapter.kt:566)
       at com.xyz.video.xyztvapp.presentation.ui.playback.VideoMediaPlayerGlue.prepare(VideoMediaPlayerGlue.kt:751)
       at com.xyz.video.xyztvapp.presentation.ui.fragment.PlaybackFragment.play(PlaybackFragment.kt:270)
       at com.xyz.video.xyztvapp.presentation.ui.fragment.PlaybackFragment.startPlayback(PlaybackFragment.kt:484)
       at com.xyz.video.xyztvapp.presentation.presenter.PlaybackPresenter$PlGameInfoUseCaseSingleObserver.onSuccess(PlaybackPresenter.kt:803)
       at com.xyz.video.xyztvapp.presentation.presenter.PlaybackPresenter$PlGameInfoUseCaseSingleObserver.onSuccess(PlaybackPresenter.kt:795)
       at io.reactivex.internal.operators.single.SingleObserveOn$ObserveOnSingleObserver.run(SingleObserveOn.java:81)
       at io.reactivex.android.schedulers.HandlerScheduler$ScheduledRunnable.run(HandlerScheduler.java:124)
       at android.os.Handler.handleCallback(Handler.java:938)
       at android.os.Handler.dispatchMessage(Handler.java:99)
       at android.os.Looper.loop(Looper.java:223)
       at android.app.ActivityThread.main(ActivityThread.java:7656)
       at java.lang.reflect.Method.invoke(Method.java)
       at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947)

com.xyz.video.rakutentvapp_issue_f99c7e1baa0b37fbffd4f44135aebddb_crash_session_66F78D7C0062000148F8BB49FB31FE15_DNE_0_v2_stacktrace.txt
Message has been deleted

IMA SDK

unread,
Oct 10, 2024, 6:00:44 PM10/10/24
to imrank...@gmail.com, ima...@googlegroups.com
Hi,

Thank you for contacting IMA SDK Support Team.

I am able to see the crash by disabling web view app from android tv settings. I’ve raise this concern to the wider team and will get back to you once I received any update on this. Meanwhile, your patience is important.
 
This message is in relation to case "ref:!00D1U01174p.!5004Q02vGdCN:ref" (ADR-00271264)

Thanks,
 
Google Logo IMA SDK Team


Md Imran Choudhury

unread,
Dec 16, 2024, 9:41:46 PM12/16/24
to Interactive Media Ads SDK
Dear IMA SDK Support Team,

I hope you’re doing well. I wanted to follow up on the issue regarding the crash caused by disabling the web view app on Android TV. Are there any updates from the wider team on this?

Thank you for your support, and I look forward to your response.


Reply all
Reply to author
Forward
0 new messages