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
I am developing an app that asks the users for permission locationAlways. The problem I am experiencing is:
asking the locationAlways permission will present the permissions dialog. First time the dialog is presented one of the options is "Only While Using the App". The callback function does however not get called when selecting this option.
This is my code
letpermission=.locationAlways
permission.request({(status)inprint("\(status.rawValue)") // closure never gets called
if status ==.authorized{
// do something
}else{
// do something else
}})
The text was updated successfully, but these errors were encountered:
Hi.
I am developing an app that asks the users for permission locationAlways. The problem I am experiencing is:
asking the locationAlways permission will present the permissions dialog. First time the dialog is presented one of the options is "Only While Using the App". The callback function does however not get called when selecting this option.
This is my code
The text was updated successfully, but these errors were encountered: