I have bug in state listener on ios. currentState is working but when I'm trying to listen for a state on ios - it throws error:
══╡ EXCEPTION CAUGHT BY SERVICES LIBRARY ╞══════════════════════════════════════════════════════════ flutter: The following MissingPluginException was thrown while activating platform stream on channel flutter: flutter_vpn_states: flutter: MissingPluginException(No implementation found for method listen on channel flutter_vpn_states) flutter: flutter: When the exception was thrown, this was the stack: flutter: #0 MethodChannel.invokeMethod (package:flutter/src/services/platform_channel.dart:319:7) flutter: <asynchronous suspension> flutter: #1 EventChannel.receiveBroadcastStream.<anonymous closure> (package:flutter/src/services/platform_channel.dart:517:29) flutter: #3 EventChannel.receiveBroadcastStream.<anonymous closure> (package:flutter/src/services/platform_channel.dart:503:64) flutter: #11 UserModel.startCheck (package:vpn/models/UserModel.dart:292:31) flutter: #13 UserModel.startCheck (package:vpn/models/UserModel.dart:283:18) flutter: #14 UserModel.getServersFromApi (package:vpn/models/UserModel.dart:280:5) flutter: #24 FlutterVpn.currentState (package:flutter_vpn/flutter_vpn.dart) flutter: #34 MethodChannel.invokeMethod (package:flutter/src/services/platform_channel.dart) flutter: (elided 41 frames from package dart:async and package dart:async-patch)
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, v1.12.13+hotfix.9, on Mac OS X 10.14.6 18G103, locale en-RU)
[!] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
! Some Android licenses not accepted. To resolve this, run: flutter doctor --android-licenses
[✓] Xcode - develop for iOS and macOS (Xcode 11.3.1)
[✓] Android Studio (version 3.6)
[✓] IntelliJ IDEA Ultimate Edition (version 2019.3.3)
[✓] Connected device (1 available)
I have bug in state listener on ios. currentState is working but when I'm trying to listen for a state on ios - it throws error:
══╡ EXCEPTION CAUGHT BY SERVICES LIBRARY ╞══════════════════════════════════════════════════════════ flutter: The following MissingPluginException was thrown while activating platform stream on channel flutter: flutter_vpn_states: flutter: MissingPluginException(No implementation found for method listen on channel flutter_vpn_states) flutter: flutter: When the exception was thrown, this was the stack: flutter: #0 MethodChannel.invokeMethod (package:flutter/src/services/platform_channel.dart:319:7) flutter: <asynchronous suspension> flutter: #1 EventChannel.receiveBroadcastStream.<anonymous closure> (package:flutter/src/services/platform_channel.dart:517:29) flutter: #3 EventChannel.receiveBroadcastStream.<anonymous closure> (package:flutter/src/services/platform_channel.dart:503:64) flutter: #11 UserModel.startCheck (package:vpn/models/UserModel.dart:292:31) flutter: #13 UserModel.startCheck (package:vpn/models/UserModel.dart:283:18) flutter: #14 UserModel.getServersFromApi (package:vpn/models/UserModel.dart:280:5) flutter: #24 FlutterVpn.currentState (package:flutter_vpn/flutter_vpn.dart) flutter: #34 MethodChannel.invokeMethod (package:flutter/src/services/platform_channel.dart) flutter: (elided 41 frames from package dart:async and package dart:async-patch)