Reputation: 41
I want to build a mobile app that runs 24/7 on the background, despite the app being closed or not. This would all be with the user consent.
The app would work as follows:
My question is if this is possible in any way? And if it is, is it possible to build in a native language to avoid coding both iOS and Android? I was looking into React Native and Flutter but didn't find any specific information.
If it's not possible to maintain the app running on the background 24/7 could it be possible to do with notifications? In this case it would work as follow:
If none of the approaches are possible, does anyone has a suggestion/solution?
Upvotes: 1
Views: 1285
Reputation: 8202
https://github.com/flutter/flutter/issues/3671
https://github.com/flutter/flutter/issues/24386
https://github.com/flutter/flutter/issues/24278
https://github.com/flutter/website/issues/1986
How do I run code in the background, even with the screen off?
It seems like an ongoing issue. Your best hope is the background_fetch plugin at the moment
https://pub.dartlang.org/packages/background_fetch
Upvotes: 1