Skip to content

Commit

Permalink
fix(ios): fire authorization changes even when no callback
Browse files Browse the repository at this point in the history
  • Loading branch information
sgtcoolguy committed Feb 22, 2021
1 parent 41198b4 commit 25a1873
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion iphone/Classes/GeolocationModule.m
Original file line number Diff line number Diff line change
Expand Up @@ -1118,7 +1118,7 @@ - (void)locationManager:(CLLocationManager *)manager didChangeAuthorizationStatu
BOOL requestedStatusMatchesActualStatus = status == requestedAuthorizationStatus;

// The new callback for android parity used inside Ti.Geolocation.requestLocationPermissions()
if (authorizationCallback != nil && status != kCLAuthorizationStatusNotDetermined) {
if (authorizationPromise != nil && status != kCLAuthorizationStatusNotDetermined) {
int code = 0;
NSString *errorStr = nil;

Expand Down

0 comments on commit 25a1873

Please sign in to comment.