You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
requestLocationPermission is passed a callback which is never invoked if the user denies permissions. If the user calls startScanning and this happens, the promise returned by startScanning never resolves as the callback is never invoked and no error is propagated to the user application.
startScanning needs to account for requestLocationPermission potentially rejecting and rethrow this error to the caller.
The text was updated successfully, but these errors were encountered:
delaneyb
changed the title
startScanning unhandled rejection if user denies location permissions
(android) startScanning unhandled rejection if user denies location permissions
Feb 11, 2023
requestLocationPermission
is passed a callback which is never invoked if the user denies permissions. If the user callsstartScanning
and this happens, the promise returned bystartScanning
never resolves as the callback is never invoked and no error is propagated to the user application.startScanning
needs to account forrequestLocationPermission
potentially rejecting and rethrow this error to the caller.ble/src/ble/index.android.ts
Lines 1235 to 1261 in 9820235
The text was updated successfully, but these errors were encountered: