If it's not spotty gps coverage or auto-pause, then look for settings on your phone that control battery optimization and when a app gets put to sleep. It might be putting your app to sleep or not providing it un-fettered use of the GPS. There are several of those settings or permissions that might interfere.