plus_plugins icon indicating copy to clipboard operation
plus_plugins copied to clipboard

No implementation found for method listen on channel

Open VNAPNIC opened this issue 2 years ago • 3 comments

startNetworkChecking() {
  Connectivity().onConnectivityChanged.listen((ConnectivityResult result) {
    Log.info('$Connectivity', 'ConnectivityResult -> $result');
    _streamController.sink.add(result);
  });
}

checkInternetConnection() async {
  var result = await (Connectivity().checkConnectivity());
  _streamController.sink.add(result);
}

======== Exception caught by services library ====================================================== The following MissingPluginException was thrown while activating platform stream on channel dev.fluttercommunity.plus/connectivity_status: MissingPluginException(No implementation found for method listen on channel dev.fluttercommunity.plus/connectivity_status)

When the exception was thrown, this was the stack: #0 MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:175:7) #1 EventChannel.receiveBroadcastStream. (package:flutter/src/services/platform_channel.dart:516:9)

[GETX] Instance "GetMaterialController" has been created [GETX] Instance "GetMaterialController" has been initialized flutter: ^[[38;5;12m┌───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────<…> flutter: ^[[38;5;12m│ 💡 Application: setting is unsubscribe<…> flutter: ^[[38;5;12m└───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────<…> [VERBOSE-2:ui_dart_state.cc(209)] Unhandled Exception: MissingPluginException(No implementation found for method check on channel dev.fluttercommunity.plus/connectivity) #0 MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:175:7) #1 checkInternetConnection (package:configuration/network/network.dart:17:16) flutter: WalletManager 286996137 current wallet state WalletState.noWallet

VNAPNIC avatar May 12 '22 07:05 VNAPNIC

I'm also having the exact same issue...

ldobreira avatar May 26 '22 20:05 ldobreira

we are having the same issue. Any solution?

turtlepile avatar Jun 27 '22 07:06 turtlepile

I know this may be obvious but did you try stopping and running the app after adding the package?

AdamBridges avatar Aug 31 '22 19:08 AdamBridges

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 15 days

github-actions[bot] avatar Dec 28 '22 00:12 github-actions[bot]

I'm having the same issue, but only when I try to generate golden tests

braginsm avatar Mar 06 '23 12:03 braginsm

Seeing the same exact thing, when trying to use this with graphql_flutter package, also when working with tests. @braginsm did you manage to find any workaround?

zzorba avatar Mar 19 '23 21:03 zzorba

Anyone found a way to fix this?

miloops avatar Feb 01 '24 10:02 miloops