-
Notifications
You must be signed in to change notification settings - Fork 124
About the start function #10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
When the If you want to share data with an isolate that has separate memory areas, try the sqflite plugin. As I am still learning, it may not be a perfect answer, but I hope it helps you :) |
Yaa I faced the issue in Hive, since Hive doesn't support multi-threading. So I switched to object box which had better performance than sqflite and also supports multi-threading. |
When we call
await FlutterForegroundTask.start( notificationTitle: "Today: $steps steps", notificationText: 'Yesterday: $yesterdaySteps steps', callback: periodicTaskFun, );
Does this call creates a new isolate or is the service still running in the main isolate?
The text was updated successfully, but these errors were encountered: