Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

java.lang.IllegalStateException: Reply already submitted on getAdvertisingId #76

Closed
Chinmay-KB opened this issue May 9, 2024 · 0 comments · Fixed by #77
Closed

java.lang.IllegalStateException: Reply already submitted on getAdvertisingId #76

Chinmay-KB opened this issue May 9, 2024 · 0 comments · Fixed by #77

Comments

@Chinmay-KB
Copy link
Contributor

Logs

E/MethodChannel#plugin_advertising_id(19352): Failed to handle method call
E/MethodChannel#plugin_advertising_id(19352): java.lang.IllegalStateException: Reply already submitted
E/MethodChannel#plugin_advertising_id(19352): 	at io.flutter.embedding.engine.dart.DartMessenger$Reply.reply(DartMessenger.java:431)
E/MethodChannel#plugin_advertising_id(19352): 	at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler$1.success(MethodChannel.java:272)
E/MethodChannel#plugin_advertising_id(19352): 	at com.segment.plugin_advertising_id.PluginAdvertisingIdPlugin.onMethodCall(PluginAdvertisingIdPlugin.kt:48)
E/MethodChannel#plugin_advertising_id(19352): 	at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(MethodChannel.java:267)
E/MethodChannel#plugin_advertising_id(19352): 	at io.flutter.embedding.engine.dart.DartMessenger.invokeHandler(DartMessenger.java:292)
E/MethodChannel#plugin_advertising_id(19352): 	at io.flutter.embedding.engine.dart.DartMessenger.lambda$dispatchMessageToQueue$0$io-flutter-embedding-engine-dart-DartMessenger(DartMessenger.java:319)
E/MethodChannel#plugin_advertising_id(19352): 	at io.flutter.embedding.engine.dart.DartMessenger$$ExternalSyntheticLambda0.run(Unknown Source:12)
E/MethodChannel#plugin_advertising_id(19352): 	at io.flutter.embedding.engine.dart.DartMessenger$SerialTaskQueue.flush(DartMessenger.java:173)
E/MethodChannel#plugin_advertising_id(19352): 	at io.flutter.embedding.engine.dart.DartMessenger$SerialTaskQueue.lambda$dispatch$0$io-flutter-embedding-engine-dart-DartMessenger$SerialTaskQueue(DartMessenger.java:163)
E/MethodChannel#plugin_advertising_id(19352): 	at io.flutter.embedding.engine.dart.DartMessenger$SerialTaskQueue$$ExternalSyntheticLambda0.run(Unknown Source:2)
E/MethodChannel#plugin_advertising_id(19352): 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
E/MethodChannel#plugin_advertising_id(19352): 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:644)
E/MethodChannel#plugin_advertising_id(19352): 	at java.lang.Thread.run(Thread.java:1012)

This error only occurs when user has isLimitAdTrackingEnabled as true

This is happening because on this line in PluginAdvertisingIdPlugin.kt, result.success is being called twice.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant