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
User if this is a bug or a problem with the wording in the documentation.
The success callback function of requestLocationAuthorization is being called immediately / as soon as the dialog is shown on iOS. My expectation is that it must be called once the user allows usage of device location, as it already does so on Android.
Experienced on a iOS 9.3 iPhone 6.
The text was updated successfully, but these errors were encountered:
Hence the success callback is invoked in response to the user's choice in the dialog and is passed the resulting outcome.
On, iOS it works differently: when requestLocationAuthorization() is called, the resulting dialog is invoke on a different thread. In order to listen for the response, you currently need to use registerLocationAuthorizationStatusChangeHandler(), which is invoked in response to a change in authorisation status. So on iOS, the requestLocationAuthorization() success callback is invoked on successfully making the request, not in response to the user's choice in the dialog.
In the short term, I'll update the docs. In the longer term, I'll see if I can do away with registerLocationAuthorizationStatusChangeHandler() on iOS and simply have the success function of requestLocationAuthorization() be called after the user has made their choice (same as Android).
User if this is a bug or a problem with the wording in the documentation.
The success callback function of requestLocationAuthorization is being called immediately / as soon as the dialog is shown on iOS. My expectation is that it must be called once the user allows usage of device location, as it already does so on Android.
Experienced on a iOS 9.3 iPhone 6.
The text was updated successfully, but these errors were encountered: