I have issue with the location sensor, I set some locations for shifting profiles, but the sensor not working most of the time, I try to reposition but there is no map showing during the process.
One more thing, I would like to see if it is possible to have the roaming be a factor of profile changing, since I move between China and Hong Kong weekly.
"I have issue with the location sensor, I set some locations for shifting profiles, but the sensor not working most of the time, I try to reposition but there is no map showing during the process.":
Since PPP version 4.3, used is Android Location API, not Google Play services.
Latest PPP version is 5.1.3. If your version is not latest, upgrade: For this read:
Profile manager for Android - event triggered. Contribute to henrichg/PhoneProfilesPlus development by creating an account on GitHub.
github.com
1. Location permission must be granted for PPP.
2. Battery optimization must be set to "Not optimized" for PPP.
3. Location must be enabled in device Settings.
4. Enable W-Fi, mobile data in device. Location in Android uses it, when GPS is not detected (especially for indoor location). But maybe is problem in China, Hong Kong. Maybe loaction is not associated with Wi-Fi SSID, mobile data cells.
5. Location scanning in PPP Settings must be enabled. Location sensor uses this scanning.
6. If in your actual location is not Wi-Fi, mobile data (or location is not associated, look point 4), then use GPS. In PPP Location scanning settings enable "Use GPS when not in Power save mode". But usage of GPS consume battery. :-(
---
"One more thing, I would like to see if it is possible to have the roaming be a factor of profile changing, since I move between China and Hong Kong weekly."
This is not implemented. I can looking on it. Maybe it is possible:
I'm trying to detect when the roaming activation occurs. So far I've used the following piece of code, but because I haven't been able to test it I am unaware of it's correctness TelephonyManager
stackoverflow.com
Please send me e-mail (
henrich.gron@gmail.com) if you want.