matanshukry / flutter_google_places_sdk

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

_places.fetchPlace has work on web debug and not work in release web #74

Closed d3roch4 closed 4 months ago

d3roch4 commented 4 months ago

The method _places.fetchPlace is work on debug mode, but not work after deploy in release mode for web.

Console Chome:

FlutterGooglePlacesSdk::call error: MissingPluginException(No implementation found for method initialize on channel plugins.msh.com/flutter_google_places_sdk)
2core_patch.dart:238 Uncaught MissingPluginException(No implementation found for method initialize on channel plugins.msh.com/flutter_google_places_sdk)
    at Object.c (http://localhost:3000/main.dart.js:5084:19)
    at http://localhost:3000/main.dart.js:75402:15
    at aG1.a (http://localhost:3000/main.dart.js:6446:62)
    at aG1.$2 (http://localhost:3000/main.dart.js:44317:14)
    at aF6.$1 (http://localhost:3000/main.dart.js:44311:21)
    at aCI.avh (http://localhost:3000/main.dart.js:45205:34)
    at aCI.LV (http://localhost:3000/main.dart.js:45207:21)
    at az5.$0 (http://localhost:3000/main.dart.js:44702:11)
    at Object.xc (http://localhost:3000/main.dart.js:6574:40)
    at ak.qe (http://localhost:3000/main.dart.js:44637:3)
js_primitives.dart:42 FlutterGooglePlacesSdk::_ensureInitialized error: MissingPluginException(No implementation found for method initialize on channel plugins.msh.com/flutter_google_places_sdk)
matanshukry commented 4 months ago

@d3roch4 I ran flutter run --release -d chrome on the example project, and was able to predict (see the result list) and get details (fetch place).

Can you provide a reproducible example or steps to use with the example project provided in this repo?

d3roch4 commented 4 months ago

Now it's working after flutter clean Thanks