ajinasokan / flutter_fgbg

Flutter plugin to detect when app(not Flutter container) goes to background or foreground
MIT License
81 stars 34 forks source link

Exception when using the plugin #2

Closed joeloudjinz closed 2 years ago

joeloudjinz commented 2 years ago
I/flutter (26123): ══╡ EXCEPTION CAUGHT BY SERVICES LIBRARY ╞══════════════════════════════════════════════════════════
I/flutter (26123): The following MissingPluginException was thrown while activating platform stream on channel
I/flutter (26123): com.ajinasokan.flutter_fgbg/events:
I/flutter (26123): MissingPluginException(No implementation found for method listen on channel
I/flutter (26123): com.ajinasokan.flutter_fgbg/events)
I/flutter (26123):
I/flutter (26123): When the exception was thrown, this was the stack:
I/flutter (26123): #0      MethodChannel._invokeMethod
package:flutter/…/services/platform_channel.dart:154
I/flutter (26123): <asynchronous suspension>
I/flutter (26123): #1      EventChannel.receiveBroadcastStream.<anonymous closure>
package:flutter/…/services/platform_channel.dart:486
I/flutter (26123): <asynchronous suspension>
I/flutter (26123): ═════════════════════════════════════════════════════════════════════════════════
ajinasokan commented 2 years ago

Are you sure you did a complete rebuild after adding plugin?

ajinasokan commented 2 years ago

Closing this as there is no response and the issue is most likely due to build cache.