Android Question Permissions for location and maps

tomky

Active Member
Licensed User
Hello.

It is essential to use RuntimePermissions so that the FusedLocationProvider and GoogleMaps libraries work on Android 6+ devices?

Thanks.
 

Peter Simpson

Expert
Licensed User
Longtime User
Yes it is.
You need to add RTP library and in your manifest you also need to add permission for fine location.

The FusedLocationProvider library uses the GPS library if I remember correctly, so RTP is 100% necessary.
 
Upvote 0

tomky

Active Member
Licensed User
Ok. Thanks to you two.

From what I see, if the targetSdkVersion is 23+ you have to wait for the RuntimePermission response before doing anything, even before loading the layout with the MapFragment, and before calling the location service, which then has to be another one that does not be Starter.
 
Upvote 0
Top