freestar-archive / freestarcapital-freestar_flutter_plugin

Other
4 stars 2 forks source link

Android application crashes: NimbusWebViewClient.java – line 245 #5

Closed alien190 closed 2 years ago

alien190 commented 2 years ago

We use freestar_flutter_plugin: ^1.0.3

Around 10% of users face the app crashes on Android platform.

Here is the stack trace:

Fatal Exception: android.util.AndroidRuntimeException: Calling startActivity() from outside of an Activity context requires the FLAG_ACTIVITY_NEW_TASK flag. Is this really what you want? at android.app.ContextImpl.startActivity(ContextImpl.java:1029) at android.app.ContextImpl.startActivity(ContextImpl.java:1005) at android.content.ContextWrapper.startActivity(ContextWrapper.java:403) at android.content.ContextWrapper.startActivity(ContextWrapper.java:403) at com.adsbynimbus.render.web.NimbusWebViewClient.interceptRequest(NimbusWebViewClient.java:245) at com.adsbynimbus.render.StaticAdController$1.interceptRequest(StaticAdController.java:94) at com.adsbynimbus.render.web.NimbusWebViewClient.shouldOverrideUrlLoading(NimbusWebViewClient.java:104) at org.chromium.android_webview.AwContentsClientBridge.shouldOverrideUrlLoading(AwContentsClientBridge.java:14) at android.os.MessageQueue.nativePollOnce(MessageQueue.java) at android.os.MessageQueue.next(MessageQueue.java:335) at android.os.Looper.loop(Looper.java:183) at android.app.ActivityThread.main(ActivityThread.java:8035) at java.lang.reflect.Method.invoke(Method.java) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:631) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:978)

alien190 commented 2 years ago

There isn't this issue anymore after migration to newest version.