In a deployment of a modified version of the app, we collected ~650 photos, but about 30-40% were missing location information. It seems that both Current and Last Known GPS info were missing in the metadata.
We tried opening Google Maps to get an updated location on the device, then return to the app. This may have improved results in some cases, sometimes those phones would start sending a location, but this does not work reliably.
Look at photo metadata received on server, find that location data is missing.
I suspect that when this happens, if you look at InfoSnapshot screen, the photo location metadata would be missing as well.
Expected Behavior
Expected: All captured photo metadata will contain either a Current or Last Known GPS info in their InfoSnapshot.
Actual: About 30-40% photo metadata across 5 phones are missing these information.
Logs
All relevant permissions are accepted. Information Providers in the app are enabled. This happens on phones occasionally, the same phones that would have location at other times.
Description
In a deployment of a modified version of the app, we collected ~650 photos, but about 30-40% were missing location information. It seems that both
Current
andLast Known
GPS info were missing in the metadata.We tried opening Google Maps to get an updated location on the device, then return to the app. This may have improved results in some cases, sometimes those phones would start sending a location, but this does not work reliably.
I wonder if you have seen similar issues, and whether something in here may be improved to more reliably get a GPS location: https://github.com/numbersprotocol/android-info-snapshot/blob/b907e94dd0160ac451c31aecc18793488c1704c6/infosnapshot/src/main/java/io/numbersprotocol/infosnapshot/factories/LocationInfoFactory.kt#L20
Would
getLastLocation()
andgetCurrentLocation()
help here? https://developer.android.com/training/location/retrieve-current#BestEstimateSteps to Reproduce
Expected Behavior
Logs
All relevant permissions are accepted. Information Providers in the app are enabled. This happens on phones occasionally, the same phones that would have location at other times.
Environment