GeoLocation.authorizationRequest Property (JS)
The type of authorization request to make to the user.
This property currently only affects iOS. It should be set before using the rest of the GeoLocation API.
Setting this property to 1
, which is also the
default, for example as follows:
var GeoLocation = require("FuseJS/GeoLocation");
GeoLocation.authorizationRequest = 1;
Means that the app should request permission from the
user to use location services while the app is in the
foreground. Setting it to 2
, as follows:
GeoLocation.authorizationRequest = 2;
Means that the app should request permission from the user to use location services whenever the app is running.
Location
- Namespace
- Fuse.GeoLocation
- Package
- Fuse.GeoLocation 2.9.1
Parameters
- value
-
Set the authorization request type1 = When in use (default) 2 = Always