We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7eac11b commit e88f36eCopy full SHA for e88f36e
1 file changed
addons/ofxiOS/src/utils/ofxiOSCoreLocation.mm
@@ -215,6 +215,11 @@ - (void) stopHeading
215
216
- (bool) startLocation
217
{
218
+ if (locationManager.authorizationStatus == kCLAuthorizationStatusNotDetermined) {
219
+ // Request permission when in use or always
220
+ [locationManager requestWhenInUseAuthorization]; // or requestAlwaysAuthorization
221
+ }
222
+
223
if([CLLocationManager locationServicesEnabled])
224
225
[locationManager startUpdatingLocation];
0 commit comments