From c48c8046959d5395ba24bb44d8fc5c164454bc00 Mon Sep 17 00:00:00 2001 From: "Alexander \"PapaTutuWawa" Date: Sun, 28 Aug 2022 12:30:37 +0200 Subject: [PATCH] experiment: Does this fix the moxxy/moxxyv2#99? --- src/moxplatform_android/lib/isolate_android.dart | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/moxplatform_android/lib/isolate_android.dart b/src/moxplatform_android/lib/isolate_android.dart index b43e35d..eab4e9b 100644 --- a/src/moxplatform_android/lib/isolate_android.dart +++ b/src/moxplatform_android/lib/isolate_android.dart @@ -75,13 +75,15 @@ class AndroidIsolateHandler extends IsolateHandler { ) async { _log.finest("Called start"); WidgetsFlutterBinding.ensureInitialized(); - + + final androidEntryHandle = PluginUtilities.getCallbackHandle(androidEntrypoint)!.toRawHandle(); + _log.finest('AndroidEntryHandle: $androidEntryHandle'); await _channel.invokeMethod("configure", [ - PluginUtilities.getCallbackHandle(androidEntrypoint)!.toRawHandle(), + androidEntryHandle, jsonEncode({ "genericEntrypoint": PluginUtilities.getCallbackHandle(entrypoint)!.toRawHandle(), "eventHandle": PluginUtilities.getCallbackHandle(handleUIEvent)!.toRawHandle() - }) + }), ]); await attach(handleIsolateEvent);