Pushwoosh / pushwoosh-flutter

Pushwoosh Flutter Plugin
Other
8 stars 16 forks source link

Exception java.lang.IllegalStateException: Reply already submitted #81

Open yebo0505 opened 7 months ago

yebo0505 commented 7 months ago

I only used the following functions :pushwoosh.registerForPushNotifications(), pushwoosh.onPushReceived.listen(),pushwoosh.onPushAccepted.listen(),pushwoosh.onDeepLinkOpened.listen(),some smartphone has IllegalStateException:

Exception java.lang.IllegalStateException: Reply already submitted at io.flutter.embedding.engine.dart.DartMessenger$Reply.reply at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler$1.success at com.pushwoosh.plugin.PushwooshPlugin$4.process (PushwooshPlugin.java) at com.pushwoosh.f0.d.a (d.java) at com.pushwoosh.internal.event.EventBus.b (EventBus.java) at com.pushwoosh.internal.event.EventBus.a (EventBus.java) at android.os.Handler.handleCallback (Handler.java:958) at android.os.Handler.dispatchMessage (Handler.java:99) at android.os.Looper.loopOnce (Looper.java:230) at android.os.Looper.loop (Looper.java:319) at android.app.ActivityThread.main (ActivityThread.java:8919) at java.lang.reflect.Method.invoke at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:578) at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1103)

yebo0505 commented 7 months ago

img_v3_02a8_32456c45-0f45-49e0-a458-052f6f8adedg

enginseer-dev commented 7 months ago

Hello, @yebo0505

Thank you for the details.

Can you please specify the following:

  1. Version of Pushwoosh plugin
  2. Flutter version
  3. On the screenshot is it the complete list of the affected devices?
  4. Are you able to reproduce the issue and if so, then can you share the steps to reproduce it?
yebo0505 commented 7 months ago
  1. pushwoosh_flutter: ^2.2.20
  2. Flutter 3.19.0 ,Tools • Dart 3.3.0 • DevTools 2.31.1
  3. yes,My app user's device
  4. I don't know how users operate it. This is the exception collected by firebase crashlytics. We use deeplink to push regularly on your push platform,The user may click the app to open the exception after receiving the push
image
enginseer-dev commented 7 months ago

Appreciate the information, @yebo0505

Just to clarify, did this issue arise following any recent updates or modifications to your app? If yes, could you detail those changes?

yebo0505 commented 7 months ago

Hi,I found that my company's app versions 1.0, 1.0.1 and 1.0.2 did not do anything on the received push messages,just print messages, and no exception were collected. However, in the following three versions, in pushwoosh. onPushAccepted.Listen () and pushwoosh.onDeepLinkOpened. Listen (), I processed the message , jump to the specified page, has collected the exception

enginseer-dev commented 7 months ago

We are investigating the issue, @yebo0505 I will get back to you as soon as I get any new information

wfhm commented 6 months ago

@yebo0505 Hi,

We were unable to reproduce the issue, so there is no fix for it yet. However, I wrapped all Result.success() calls in try-catch in the latest version of the package, so at least it won't crash the app now until find a proper solution to it.

This issue will remain open until it is properly resolved.

Jaaco commented 2 months ago

Hey, this issue popped up for us as well, in a version that included the the PR I opened, regarding this other issue.

So it seems that updating these versions might have caused this issue.

Here is a stack trace: image

Let me know if there is anything I can assist with