answered
2019-05-16 16:50:42 +0200
update : microG+UnifiedNLP now works with 3.1.0 Seiteminen
Regarding Sailfish
Out of the box, Sailfish native application (e.g.: Pure Maps) taking a long time to lock GPS is the expected behaviour, because out of the box Sailfish only exclusively rely on GPS sattelites and it takes quite some time to find them (several minutes, exactly like on a car's satnav without an up to date ephemerids table).
To change behaviour:
This will cause your phone to gather information around it (visible GSM Cell Towers, Wifi Access point) and send them to Mozilla's servers, this helps find the position before the GPS sattelites get locked upon, and also brings extra information for faster GPS bring up.
Now the Sailfish native application will almost immediately lock upon starting... well as long as Mozilla knows of which cell towers and AP are visible around you (of course if you're somewhere Mozilla doesn't know about, they won't be able to recognize your position based on the visible towers).
(Back when your XA2 had Android installed, this is exactly what the "Google Play Service" (com.google.android.gms) did, except using Google's server instead of Mozilla's, and except that it is constantly doing it even if you don't want it too, enabling Google to track every inch you move and market the crap out your behavior to advertising agencies).
Note: I've occasionally run into situation where location refuses to use any sattelite, despite having more than a couple of dozens in view. Cold reboot seems to fix this.
Regarding Android Apps
You have two solutions to get this working in Alien Dalvik:
install the actual Google Play Service from Google
(Note: I haven't tried it personnally)
install MicroG (an opensource program which re-implements the same APIs) which uses the UnifiedNLP infrastructure provide several plugin to do similar GPS assisting.
To get UnifiedNLP reliabily working, keep in mind that the current alien-dalvik doesn't give android apps access to 3G/4G cell status, only to Wifi AP.
- So either use some UnifiedNlp backend that exclusively rely on Wifi AP (e.g.: Apple's servers)
- Or configure your UnifiedNlp - e.g. Mozilla's - to only use Wifi and ignore 3G/4G Cell towers.
- Whatever you choose check microG settings -> Self-checks
- After a while "UnifiedNLP has no last known location. This will cause some apps to fail" should dispear
- You should not get "No UnifiedNlp location was provided by the system within 10 seconds"
Once that is set up position works much better :
- Apps that directly talk to the GPS hardware will always work (things like GPSTest is able to see GPS satelite, Google Maps will eventually lock the position)
- Apps which rely on assisted position should get a rough position estimates, most will get updated to a more precise one as soon as the UnifiedNLP kicks in (though some might fail to kick UnifiedNLP, try running Self-Checks to force it running) (most of the ridesharing / vehicle renting apps I've tried: Uber, Kapten, Pick-e-Bike, Lime, Circ, Tier, Bird, Mobility, SBB).
- Some might still crash due to other missing API (Mobility in my case).
Are you using a native application or an Android one? With native ones it should work as long as you have selected accurate positioning in location settings, so it uses GSM antennae to locate the device. For Android apps I think only GPS works, so it takes a lot of time after GPS location is initially requested. In Android I've seen some applications (Waze) that work after some time, others (like Google Maps) never end up working.
txtmode ( 2019-05-16 15:42:26 +0200 )editSame thing here on XA2. Takes up to 5min to get a GPS fix in pure maps and GP info, although I had a GPS fix at almost the same location the day before.
bomo ( 2019-05-16 16:42:36 +0200 )editSince a few days I also have a GPS issue on my Xperia XA2 Ultra with 3.1.0.11. GPS seems to have simply stopped working. I do not get a lock anymore independent of location settings (accuracy), reboot, etc... I've left it for multiple hours of several days now. GPSInfo shows between 0/22 to 0/48 satellites but no lock...
Any ideas what I can do to remedy this situation?
wb1000000 ( 2019-09-30 15:00:53 +0200 )editThere are still issues with the GPS on XA2 that aren't solved by enabling High-Accuracy positioning, so I've removed the [SOLVED] text in the title and re-opened the issue. Hopefully this will make this issue a bit more visible for the devs!
sjn ( 2019-11-11 03:18:33 +0200 )editFor me, the problem is not solved. On my XA2 Ultra I still every now and then don't get GPS fix within 30minutes.
bomo ( 2020-01-12 19:18:17 +0200 )edit