Some devices have a custom application manager that may stop our GPS Tracking app after running for a while (to save battery). You should try to find the related applications manager and disable such feature four our “WAY/WAY Service” app.
You will usually find this in System settings.
Go to your system settings.
Tap on Battery (found under System category)
Find App optimization section and tap on detail
Find WAY Service in the list and tap on it
Change the option to “Disabled for”
Done, your system should no longer freeze our app
Please check the next video on how to do it:
How to disable Android’s Doze battery optimization for specific apps.