flutter_in_app_update
flutter_in_app_update copied to clipboard
Crash found on Firebase Crashlytics on a user device
Flutter version- 1.22.5
Hey there, thanks for the plugin. I am here to report a Crash which has effected my 3 users in last 24 hrs. Please @jonasbark @mig35 solve the issue.
Here is the highlighted error mentioned in the firebase crashlytics-
InAppUpdatePlugin.java line 37
de.ffuf.in_app_update.InAppUpdatePlugin$onActivityResumed$1.a
Fatal Exception: java.lang.RuntimeException
java.lang.reflect.InvocationTargetException
com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:451)
com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1408)
Caused by java.lang.reflect.InvocationTargetException
java.lang.reflect.Method.invoke (Method.java)
com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1408)
Caused by android.content.IntentSender$SendIntentException
android.app.Activity.startIntentSenderForResultInner (Activity.java:4878)
com.google.android.play.core.appupdate.e.a (e.java:9)
de.ffuf.in_app_update.InAppUpdatePlugin$onActivityResumed$1.a (InAppUpdatePlugin.java:37)
de.ffuf.in_app_update.InAppUpdatePlugin$onActivityResumed$1.a (InAppUpdatePlugin.java:2)
com.google.android.play.core.tasks.e.run (e.java:27)
com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1408)
Fast fix & new plugin release will be highly appreciable. Thanks
Please try to use the plugin from the latest master branch and report back
Hey @jonasbark , still found crash even after updating the plugin. Check the below image-
@jonasbark any update.
@jonasbark @mig35 Here is new crash, please tell me a solution
It's the same crash.
Which version are you using? The unreleased one from the master branch or the latest from pub.dev?
I am using latest from the pub.dev. below line is in my pubspec.yaml
in_app_update: ^1.1.15
@jonasbark
i have same issue, any update for this?
same issue here.
..
@jonasbark Is this package is of any use? You are not even replying!
Faced 21 crashes in 24 hours for this issue.
Same here. Numerous crashes in the last 24 hours.
Please share some details on the crashes, then.
Here is the crash stacktrace (97 android users affecteds):
InAppUpdatePlugin.kt line 150 Caused by android.content.IntentSender$SendIntentException android.app.Activity.startIntentSenderForResultInner (Activity.java:5519) android.app.Activity.startIntentSenderForResult (Activity.java:5487) androidx.activity.ComponentActivity.startIntentSenderForResult (ComponentActivity.java:631) com.google.android.play.core.appupdate.zze.startIntentSenderForResult (com.google.android.play:core@@1.10.3:1) com.google.android.play.core.appupdate.zzf.startUpdateFlowForResult (com.google.android.play:core@@1.10.3:9) com.google.android.play.core.appupdate.zzf.startUpdateFlowForResult (com.google.android.play:core@@1.10.3:2) de.ffuf.in_app_update.InAppUpdatePlugin.onActivityResumed$lambda-0 (InAppUpdatePlugin.kt:150) de.ffuf.in_app_update.InAppUpdatePlugin.$r8$lambda$3XJZpbWv7mcDfk_mt2k7JkkWXKo (InAppUpdatePlugin.kt) de.ffuf.in_app_update.InAppUpdatePlugin$$InternalSyntheticLambda$0$ae5e87df4e91be3f256e078e509fb3dfba2cf717e3e630af6fcadd7bf346975b$0.onSuccess (InAppUpdatePlugin.java:6) com.google.android.play.core.tasks.zze.run (com.google.android.play:core@@1.10.3:1) android.os.Handler.handleCallback (Handler.java:914) android.os.Handler.dispatchMessage (Handler.java:100) android.os.Looper.loop (Looper.java:224) android.app.ActivityThread.main (ActivityThread.java:7551) java.lang.reflect.Method.invoke (Method.java) com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:539) com.android.internal.os.ZygoteInit.main (ZygoteInit.java:995)
Here is the exact line where it is failing
de.ffuf.in_app_update.InAppUpdatePlugin.onActivityResumed$lambda-0 (InAppUpdatePlugin.java:150)
A possible solution is https://stackoverflow.com/questions/57290049/java-lang-reflect-invocationtargetexception-while-inappupdate-android-if-retries
Fatal Exception: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:612) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1130)
Caused by java.lang.reflect.InvocationTargetException:
at java.lang.reflect.Method.invoke(Method.java)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:602)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1130)
Caused by android.content.IntentSender$SendIntentException:
at android.app.Activity.startIntentSenderForResultInner(Activity.java:5638)
at android.app.Activity.startIntentSenderForResult(Activity.java:5606)
at com.google.android.play.core.appupdate.zze.startIntentSenderForResult(com.google.android.play:core@@1.10.3:1)
at com.google.android.play.core.appupdate.zzf.startUpdateFlowForResult(com.google.android.play:core@@1.10.3:9)
at com.google.android.play.core.appupdate.zzf.startUpdateFlowForResult(com.google.android.play:core@@1.10.3:2)
at de.ffuf.in_app_update.InAppUpdatePlugin$onActivityResumed$1.invoke(InAppUpdatePlugin.kt:150)
at de.ffuf.in_app_update.InAppUpdatePlugin$onActivityResumed$1.invoke(InAppUpdatePlugin.kt:145)
at de.ffuf.in_app_update.InAppUpdatePlugin.onActivityResumed$lambda$0(InAppUpdatePlugin.kt:145)
at de.ffuf.in_app_update.InAppUpdatePlugin.$r8$lambda$rxVDuTqUUoc08Ez6X915gCQn_u8(InAppUpdatePlugin.kt)
at de.ffuf.in_app_update.InAppUpdatePlugin$$InternalSyntheticLambda$0$ae5e87df4e91be3f256e078e509fb3dfba2cf717e3e630af6fcadd7bf346975b$0.onSuccess(InAppUpdatePlugin.java:2)
at com.google.android.play.core.tasks.zze.run(com.google.android.play:core@@1.10.3:1)
at android.os.Handler.handleCallback(Handler.java:938)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:246)
at android.app.ActivityThread.main(ActivityThread.java:8653)
at java.lang.reflect.Method.invoke(Method.java)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:602)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1130)
Duplicate of https://github.com/jonasbark/flutter_in_app_update/issues/46