已经有一段时间了,并且已经有了很多发展。
首先,如何在Flutter中创建服务以使应用程序始终在后台运行有一些答案?
此外,使用Flutter插件和地理围栏(在2018年9月),Flutter
/
Background流程基本上将使您指向在后台执行中等/执行Dart操作
- 这是一个Geofencing示例,涉及到隔离,通过
MethodChannel
和PluginUtilities.getCallbackHandle
(PluginUtilities)的本机Android / iOS代码之间的合作关系
las,现在有很多插件可用:
- https://pub.dev/packages/background_location
- https://pub.dev/packages/android_alarm_manager(Android)
- https://pub.dev/packages/background_fetch
- https://pub.dev/packages/workmanager
- https://pub.dev/packages/audio_service



