The following tables show the permissions required for each Snapshot API method and primitive fence type, respectively.

Snapshot API

Method Required Android Permission
getDetectedActivity() com.google.android.gms.permission.ACTIVITY_RECOGNITION
getBeaconState() android.permission.ACCESS_FINE_LOCATION
getHeadphoneState() none
getLocation() android.permission.ACCESS_FINE_LOCATION
getPlaces() android.permission.ACCESS_FINE_LOCATION
getWeather() android.permission.ACCESS_FINE_LOCATION

Fence API

Fence API fence type Required Android permission
DetectedActivityFence com.google.android.gms.permission.ACTIVITY_RECOGNITION
BeaconFence android.permission.ACCESS_FINE_LOCATION
HeadphoneFence none
LocationFence android.permission.ACCESS_FINE_LOCATION
TimeFence none

Enviar comentarios sobre…