PostHog / posthog-flutter

PostHog Flutter SDK
https://posthog.com/docs/libraries/flutter
MIT License
55 stars 37 forks source link

MissingPluginException #24

Closed alexprice12 closed 1 year ago

alexprice12 commented 2 years ago

On Android when I run this I get the following error:

E/flutter (21336): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: MissingPluginException(No implementation found for method identify on channel posthogflutter)
E/flutter (21336): #0      MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:294:7)
E/flutter (21336): <asynchronous suspension>
E/flutter (21336): #1      PosthogMethodChannel.identify (package:posthog_flutter/src/posthog_method_channel.dart:14:7)
E/flutter (21336): <asynchronous suspension>

I've followed the the instructions here. I also tried to run flutter clean with no luck.

alexprice12 commented 2 years ago

It looks like this occurs only with hot reload and works OK for initial load or hot restart.

marandaneto commented 1 year ago

@alexprice12 does this happen on Android, iOS or Web?

marandaneto commented 1 year ago

@alexprice12 any feedback?

marandaneto commented 1 year ago

Closing the issue as a part of large repository cleanup, due to it being inactive and/or outdated. Please do not hesitate to ping me if it is still relevant, and I will happily reopen and work on it. Cheers!