H heldenssjoerd Member Nov 16, 2020 #1 When using GPS-tracking and asking for permission you get (in current android versions) if you want to - allways allow - allow when using app - denie Is there a way to check which of the options is selected? The result is true or false. But we would like to know which option is selected bij the user. Currently we're using the code below to ask for permission Code: ... Starter.rp.CheckAndRequest(Starter.rp.PERMISSION_ACCESS_FINE_LOCATION) Wait For Activity_PermissionResult (Permission As String, Result As Boolean) If Result=True Then ....
When using GPS-tracking and asking for permission you get (in current android versions) if you want to - allways allow - allow when using app - denie Is there a way to check which of the options is selected? The result is true or false. But we would like to know which option is selected bij the user. Currently we're using the code below to ask for permission Code: ... Starter.rp.CheckAndRequest(Starter.rp.PERMISSION_ACCESS_FINE_LOCATION) Wait For Activity_PermissionResult (Permission As String, Result As Boolean) If Result=True Then ....
Erel B4X founder Staff member Licensed User Longtime User Nov 16, 2020 #2 What do you need it for? Are you using geofencing? Upvote 0
M MikeSW17 Active Member Licensed User Longtime User Nov 16, 2020 #3 I believe Erel's updated Tutorial: Background location tracking solves this, eliminating the need to know the permission type, by adding to the manifest: B4X: SetServiceAttribute(Tracker, android:foregroundServiceType, "location") Upvote 0
I believe Erel's updated Tutorial: Background location tracking solves this, eliminating the need to know the permission type, by adding to the manifest: B4X: SetServiceAttribute(Tracker, android:foregroundServiceType, "location")