Background Location - GPS when App is Background or closed

Custom Code

Hello, I'm creating an app where the user can track. It's mainly for sport activities. It's the main function of the app.Therefor the user click on a button to start the track and can stop it. I use Geolocator plugin.

Everythin works fine when the app is open in visible. But when the user open another app or put it in background it doesn't work anymore.

Backgorund tracking location is a must have for my app. So if anyone can help me or was able to do it, it would be great to get more information. My App is for Android and iOS. It would be nice if location tracking would work when app is closed, but currently I would be happy if I come at least small steps closer and it works when app is not in foreground. Everything you have could help me.

What have you tried so far?

I tried kind of everything. Multiple background plugins and added permissions and so on, but nothing worked. Ether it's not tracking or the app closed directly and crash.

Did you check FlutterFlow's Documentation for this topic?
Yes
2
3 replies