bkonyi / FlutterGeofencing

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

Not work in release mode #88

Open vovaklh opened 1 year ago

vovaklh commented 1 year ago

The plugin not work on release mode in Android and IOS. Only in debug and profile. I can't understand what is the reason

vovaklh commented 1 year ago

@bkonyi Maybe you know the reason?

pranil-iottive commented 1 year ago

@bkonyi I'm also facing the same issue

pranil-iottive commented 1 year ago

@vovaklh i found the solution and it worked for me.

I've added @pragma('vm:entry-point') on top functions which I've used to access the functionalities of the package

marcolettieri commented 1 year ago

@pranil-iottive on which functions?

pranil-iottive commented 1 year ago

@marcolettieri I've used top-level functions, such as IsolateNameServer usage and callback functions for added geofences .

Screenshot 2023-05-08 at 12 23 22 PM

such as this function