This repository was archived by the owner on Nov 8, 2023. It is now read-only.
File tree 2 files changed +2
-13
lines changed
2 files changed +2
-13
lines changed Original file line number Diff line number Diff line change @@ -62,6 +62,7 @@ export function enableLocationTap() {
62
62
geolocation . isEnabled ( ) . then ( function ( isEnabled ) {
63
63
if ( ! isEnabled ) {
64
64
geolocation . enableLocationRequest ( false , true ) . then ( function ( ) {
65
+ console . log ( "allowed location usage" ) ;
65
66
} , function ( e ) {
66
67
console . log ( "Error: " + ( e . message || e ) ) ;
67
68
} ) ;
Original file line number Diff line number Diff line change @@ -85,22 +85,10 @@ class LocationListenerImpl extends NSObject implements CLLocationManagerDelegate
85
85
break ;
86
86
87
87
case CLAuthorizationStatus . kCLAuthorizationStatusAuthorizedAlways :
88
- if ( this . authorizeAlways && this . _resolve ) {
89
- LocationMonitor . stopLocationMonitoring ( this . id ) ;
90
- this . _resolve ( ) ;
91
- } else if ( this . _reject ) {
92
- LocationMonitor . stopLocationMonitoring ( this . id ) ;
93
- this . _reject ( new Error ( "Authorization Denied." ) ) ;
94
- }
95
- break ;
96
-
97
88
case CLAuthorizationStatus . kCLAuthorizationStatusAuthorizedWhenInUse :
98
- if ( ! this . authorizeAlways && this . _resolve ) {
89
+ if ( this . _resolve ) {
99
90
LocationMonitor . stopLocationMonitoring ( this . id ) ;
100
91
this . _resolve ( ) ;
101
- } else if ( this . _reject ) {
102
- LocationMonitor . stopLocationMonitoring ( this . id ) ;
103
- this . _reject ( new Error ( "Authorization Denied." ) ) ;
104
92
}
105
93
break ;
106
94
You can’t perform that action at this time.
0 commit comments