I need to do an app for tracking location all the time, it's working well, but.. if the user swipe (close) my app, i can restart it.
I tried with a silent notifications (firebase), but if the app was closed by the user, the silent notifications doesn't work.
If the app is opened (foreground or background), this work perfect. But the problem is restart the app if the user close it or the phone is restarted.