New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unhandled Exception: MissingPluginException(No implementation found for method getCurrentPosition on channel flutter.baseflow.com/geolocator) #1096
Comments
I'm having the same issue on web, but only in production builds. When debugging, it works fine. |
In my case it was due to |
Hi @dukenebur, This error probably occurs while trying to call void callbackDispatcher() {
Workmanager().executeTask(task, inputData) async {
DartPluginRegistrant.ensureInitialized();
// TODO: Put the rest off the code here...
}
} or if you are on older Flutter version use: void callbackDispatcher() {
Workmanager().executeTask(task, inputData) async {
if (defaultTargetPlatform == TargetPlatform.android) {
GeolocatorAndroid.registerWith();
} else if (defaultTargetPlatform == TargetPlatform.iOS) {
GeolocatorApple.registerWith();
}
// TODO: Put the rest off the code here...
}
} A more detailed explanation can be found in this comment. |
In their use case, it's "probably" because they are accessing the location while in background. In my case, that app is in foreground, so this doesn't apply to my case. Can you reopen @mvanbeusekom? |
Hi @ricardoboss, It would be better if you'd create a new issue describing the behavior including:
Just a long shot, in the past there were similar issues occurring only on web and only in profile/ release builds, maybe this is related, you could take a look this issue. |
馃悰 Bug Report
Hi, hope you are doing well.
I am having this error:
Unhandled Exception: MissingPluginException(No implementation found for method getCurrentPosition on channel flutter.baseflow.com/geolocator)
Dart SDK version is 2.13.1
geolocator: 8.0.5
Could you help me?
Kind Regards
The text was updated successfully, but these errors were encountered: