Ian
Ian
@ekasetiawans I tried the above solution, but other error occur. `2022-05-06 11:43:44.376688+0800 Runner[40780:421791] [VERBOSE-2:ui_dart_state.cc(198)] Unhandled Exception: PlatformException(channel-error, Unable to establish connection on channel., null, null)` Flutter version: Flutter 2.13.0-0.3.pre •...
btw it happens when socket IO is inside the flutter_background_service and SharedPreferences.getInstance() is called when have a coming notifications. Future onStart(ServiceInstance service) async { DartPluginRegistrant.ensureInitialized(); socket?.on('receive-notify-user', (data) async {//If this...
@ekasetiawans any updates ? Please can you help me with this ?
@ekasetiawans I already upgrade my flutter to 3 and still having issue. `[VERBOSE-2:ui_dart_state.cc(198)] Unhandled Exception: PlatformException(channel-error, Unable to establish connection on channel., null, null)`
@ekasetiawans ahh I see thanks, is there any fix or workaround for this issue ? Sorry, Am I the only one having this error after applying this workaround(DartPluginRegistrant.ensureInitialized()) ?
@ekasetiawans It throws error in SharedPreferences.getInstance(); Before the error was MissingPluginException but after the flutter upgrade to 3 and added the line DartPluginRegistrant.ensureInitialized(); the error change to PlatformException. ``` Future...
@ekasetiawans IOS
@ekasetiawans I already test it and now it works fine. Thank you so much.