Flutter에서 background/foreground service 하는법
Flutter에서 background/foregound service 사용하는 법을 찾아보았습니다.
먼저는, 제일 먼저 flutter 공식 웹사이트에서 background process에 관한 내용을 찾아보았습니다.
https://flutter.dev/docs/development/packages-and-plugins/background-processes
Background processes
Where to find more information on implementing background processes in Flutter.
flutter.dev
다음은, 공식문서에서 인정한 사람의 미디엄 블로그 내용입니다. https://medium.com/flutter/executing-dart-in-the-background-with-flutter-plugins-and-geofencing-2b3e40a1a124
Executing Dart in the Background with Flutter Plugins and Geofencing
09/10/2020: This article has been updated to reflect the move to the v2 Android embedding API. Migration instructions for applications…
medium.com
마지막으로 그 사람의 깃헙 소스코드는,
https://github.com/bkonyi/FlutterGeofencing
GitHub - bkonyi/FlutterGeofencing: Rough work for Flutter geofencing plugin
Rough work for Flutter geofencing plugin. Contribute to bkonyi/FlutterGeofencing development by creating an account on GitHub.
github.com
혹은, 플러터 pub.dev 에 package를 이용하여 서비스를 사용해 볼 수도 있을 것 같습니다.
https://pub.dev/packages/flutter_background_service
flutter_background_service | Flutter Package
A flutter plugin for executing dart code continously even application closed.
pub.dev
혹은,
https://tonydavidx.github.io/how-to-run-background-tasks-in-flutter/
How to Run Background Tasks in Flutter
learn how to use android alarm manager package to run your dart code in background
tonydavidx.github.io