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.
- Fuse.GeoLocation 1.11.2
Set the authorization request type1 = When in use (default) 2 = Always