You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is mostly caused by a misconfiguration of the plugin:
127
-
Android Pre v2 embedding: make sure the plugin registrant callback is set
128
-
Android v2 embedding: Log a new github issues. This
129
-
iOS: make sure the plugin registrant callback is set
127
+
- Android: This plugin now uses Flutter's Plugin V2 embedding pattern (FlutterPluginBinding) so you don't need to set a manual plugin registrant callback.
128
+
- iOS: For compatibility with older Flutter versions, the setPluginRegistrantCallback is still available but will be removed in a future version.
129
+
130
+
If you're using Flutter 1.12 or later, the plugin should work out of the box with the V2 embedding.
130
131
```
132
+
133
+
## Migration Guide
134
+
135
+
### Upgrading from older versions
136
+
137
+
This plugin has been updated to use the modern Flutter Plugin V2 embedding pattern with FlutterPluginBinding. If you're using Flutter 1.12 or later, you don't need to make any changes to your app's code.
138
+
139
+
For backward compatibility, the older methods are still available but marked as deprecated:
140
+
141
+
-`BackgroundLocationTrackerPlugin.setPluginRegistrantCallback` on Android
142
+
-`BackgroundLocationTrackerPlugin.setPluginRegistrantCallback` on iOS
143
+
144
+
These methods will be removed in a future version of the plugin.
0 commit comments