bkonyi / FlutterGeofencing

Rough work for Flutter geofencing plugin
BSD 3-Clause "New" or "Revised" License
332 stars 215 forks source link

Update Geofencing in Callback method #86

Open nguyenphuc1995 opened 2 years ago

nguyenphuc1995 commented 2 years ago

I have more than 40 geofences, but ios limit is only 20 I decided to update my 20 closest geofences when [enter/leaving my geofences] Unfortunately, when i receive GeofenceEvent.exit in "Callback", i call

final list = await GeofencingManager.getRegisteredGeofenceIds();

and it return me

flutter: MissingPluginException(No implementation found for method GeofencingPlugin.getRegisteredGeofenceIds on channel plugins.flutter.io/geofencing_plugin)

Screenshot 2022-06-02 at 12 07 42

Please help, thank you so much!

nguyenphuc1995 commented 2 years ago
Screenshot 2022-06-02 at 12 57 44
nguyenphuc1995 commented 2 years ago

solution: code using SendPort

Screenshot 2022-06-02 at 13 32 16

It work when open in foreground, background, but dont work when app's killed, still this error

nguyenphuc1995 commented 2 years ago

please help me if you have time @bkonyi