– Turn on the geolocation in High-Accuracy mode in your phone settings ( to locate by GPS, WiFi networks and towers of GSM cellular communications).
– Connect WiFi and mobile data.
– Add permissions for the app to work in the background mode, autorun.
– Add the application to the exceptions for power saving mode.
These are general recommendations, the settings may vary slightly in different phone models.
Also, in some phone models, there are settings that limit the usage of mobile data in a phone and WiFi (mobile data and WiFi be blocked in the background and sleep mode). Check that you do not have such restrictions in the phone.