chyiiiiiiiiiiii / flutter_zendesk_messaging

Zendesk-Messaging for Flutter developer
Apache License 2.0
31 stars 47 forks source link

ZendeskMessaging.getUnreadMessageCount shows IllegalStateException error on Android #44

Closed aizuddineismail closed 2 weeks ago

aizuddineismail commented 11 months ago

Everytime when I call ZendeskMessaging.getUnreadMessageCount(), it will print the following message. Just wondering is this expected and safe?

E/MethodChannel#zendesk_messaging( 4308): Failed to handle method call
E/MethodChannel#zendesk_messaging( 4308): java.lang.IllegalStateException: Reply already submitted
E/MethodChannel#zendesk_messaging( 4308):   at io.flutter.embedding.engine.dart.DartMessenger$Reply.reply(DartMessenger.java:435)
E/MethodChannel#zendesk_messaging( 4308):   at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler$1.success(MethodChannel.java:272)
E/MethodChannel#zendesk_messaging( 4308):   at com.chyiiiiiiiiiiiiii.zendesk_messaging.ZendeskMessagingPlugin.onMethodCall(ZendeskMessagingPlugin.kt:119)
E/MethodChannel#zendesk_messaging( 4308):   at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(MethodChannel.java:267)
E/MethodChannel#zendesk_messaging( 4308):   at io.flutter.embedding.engine.dart.DartMessenger.invokeHandler(DartMessenger.java:295)
E/MethodChannel#zendesk_messaging( 4308):   at io.flutter.embedding.engine.dart.DartMessenger.lambda$dispatchMessageToQueue$0$io-flutter-embedding-engine-dart-DartMessenger(DartMessenger.java:322)
E/MethodChannel#zendesk_messaging( 4308):   at io.flutter.embedding.engine.dart.DartMessenger$$ExternalSyntheticLambda0.run(Unknown Source:12)
E/MethodChannel#zendesk_messaging( 4308):   at android.os.Handler.handleCallback(Handler.java:942)
E/MethodChannel#zendesk_messaging( 4308):   at android.os.Handler.dispatchMessage(Handler.java:99)
E/MethodChannel#zendesk_messaging( 4308):   at android.os.Looper.loopOnce(Looper.java:201)
E/MethodChannel#zendesk_messaging( 4308):   at android.os.Looper.loop(Looper.java:288)
E/MethodChannel#zendesk_messaging( 4308):   at android.app.ActivityThread.main(ActivityThread.java:7872)
E/MethodChannel#zendesk_messaging( 4308):   at java.lang.reflect.Method.invoke(Native Method)
E/MethodChannel#zendesk_messaging( 4308):   at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
E/MethodChannel#zendesk_messaging( 4308):   at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:936)