matanshukry / flutter_google_places_sdk

Flutter plugin for google places native sdk
32 stars 68 forks source link

Web release only : crash using findAutocompletePredictions method #72

Open florianhenonin opened 4 months ago

florianhenonin commented 4 months ago

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 commented 4 months ago

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

gualax commented 3 weeks ago

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 commented 1 day ago

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)