Open ngaruko opened 3 years ago
New Install.
New login
Create a report
User shown the 'prominent disclosure' and accepts
User shown the location permission dialog
Accept and submit the report
Go to database _utils/#database/medic/<report_UUID>
Report should have
"geolocation_log": [
{
"timestamp": 1616970414062,
"recording": {
"latitude": xxxxxxxxxxx,
"longitude": xxxxxxxxxx,
"altitude": 63.03634408150303,
"accuracy": 13.819999694824219,
"altitudeAccuracy": null,
"heading": null,
"speed": null
}
}
],
"geolocation": {
"latitude": xxxxxxx,
"longitude": xxxxxxxxx,
"altitude": 63.03634408150303,
"accuracy": 13.819999694824219,
"altitudeAccuracy": null,
"heading": null,
"speed": null
},
Do more testing that involves rejecting prompts and checking that location data were not saved etc
User: CHW
Config: Default
Environment: gamma-cht
Platform: Mobile App. APK v1.0.0-alpha.1
cht-core version: 3.15.0
____
Phone: Samsung Galaxy A01 Android Version: 10 Android System WebView Version: 101.0.4951.41
____
Phone: Alcatel Onetouch 50560 Android Version: 5.1.1 Android System WebView Version: 95.0.4638.74
User: Restricted/ Online Site: Instance(gamma, gamma-b, cht) Platform: Mobile App
Notes before start testing (from comment in issue #111 )
For Android >= 6, you should not get a permission request the first time you boot the app. Instead, you should get a permission request when you create/edit a report or open a task. The permission request will keep appearing on the next create/edit/open, until you accept or "deny and don't show again".
For Android 5 and 4, you should get no permissions requests, as in these versions, permissions are granted automatically when the app is installed.
Test Steps:
geolocation_log
andgeolocation
depending on the option selected in the location request.Expected results:
Android >= 6:
geolocation_log
a message saying that application does not have sufficient geolocation permissions or something similar.geolocation_log
a message saying that application does not have sufficient geolocation permissions or something similar.geolocation_log
all the correct values for "latitude", "longitude", "altitude", "accuracy"...Android 5:
geolocation_log
all the correct values for "latitude", "longitude", "altitude", "accuracy"...NOTE: To be able to see all the correct information in the report using Android 5 the "Location Mode" should be in "High accuracy"
Related Issues: