Skip to content
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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Web release only : crash using findAutocompletePredictions method #72

Open
florianhenonin opened this issue Feb 13, 2024 · 3 comments
Open

Comments

@florianhenonin
Copy link

Hello,

Thanks for this great lib!
Unfortunately, on release web only (Firebase deployment), I can't load predictions from query.

In Chrome Console I get thoses errors

FlutterGooglePlacesSdk::_ensureInitialized error: MissingPluginException(No implementation found for method initialize on channel plugins.msh.com/flutter_google_places_sdk)
main.dart.js:35566 FlutterGooglePlacesSdk::call error: MissingPluginException(No implementation found for method initialize on channel plugins.msh.com/flutter_google_places_sdk)
main.dart.js:5286 Uncaught MissingPluginException(No implementation found for method initialize on channel plugins.msh.com/flutter_google_places_sdk)

Everything work fine on Android, iOS & Web debug.
My key has no restrictions.

flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.16.5, on macOS 14.2.1 23C71 darwin-x64, locale fr-FR)
[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.0-rc1)
[✓] Xcode - develop for iOS and macOS (Xcode 15.2)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2022.1)
[✓] VS Code (version 1.73.1)
[✓] Connected device (4 available)
[✓] Network resources

• No issues found!

@matanshukry
Copy link
Owner

@florianhenonin Can you create a reproducible example, or provide steps to be used with the example project provided in this repo?

@gualax
Copy link

gualax commented Jun 12, 2024

It happens to me too. It happens only on production, on debug mode works fine.
To reproduce it only need to make, a test deploying the web app, you can do it with firebase cli, for free.

And the error is this.

FlutterGooglePlacesSdk::_ensureInitialized error: MissingPluginException(No implementation found for method initialize on channel plugins.msh.com/flutter_google_places_sdk)
main.dart.js:35566 FlutterGooglePlacesSdk::call error: MissingPluginException(No implementation found for method initialize on channel plugins.msh.com/flutter_google_places_sdk)
main.dart.js:5286 Uncaught MissingPluginException(No implementation found for method initialize on channel plugins.msh.com/flutter_google_places_sdk)

@japarico
Copy link

japarico commented Jul 8, 2024

I'm having the same problem.
On development, it works well but when I try to run it on production, I am getting this error.

FlutterGooglePlacesSdk::call error: MissingPluginException(No implementation found for method initialize on channel plugins.msh.com/flutter_google_places_sdk)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants