Gelocation.GetLocationAsync() never returns if the location permission is denied in iOS 14 and later only.
await Gelocation.GetLocationAsync()The location should return null, or the last known location, or throw an exception, as it does pre iOS 14.
The method never returns and the app will wait indefinitely.
Discovered the issue on an iPhone XS Max running iOS 14.1 after having it reported by a user. An iPhone 6 on iOS 12 works fine still on the same app build.
Can confirm also experiencing this issue.
It is even worse than that in my case. If the permission was not previously granted no matter what option I choose in the popup dialog the method never returns.
It is even worse than that in my case. If the permission was not previously granted no matter what option I choose in the popup dialog the method never returns.
@iMrTidy what happens if you go to the device settings and manually enable the permission for your app there? Does it work after that?
It is even worse than that in my case. If the permission was not previously granted no matter what option I choose in the popup dialog the method never returns.
@iMrTidy what happens if you go to the device settings and manually enable the permission for your app there? Does it work after that?
If the permission was previously given all works smoothly.
Also got the same error results with the pre release 1.6.0-pre2
I think this is now fixed in #1487
CI is now building that change and will be pushed to the preview feed soon as 1.6.0-ci.25: https://aka.ms/xamarin-essentials-ci/index.json
In addition, I'll be pushing out a preview to NuGet, so it will be great if you could test the change and make sure it works for you.
Duplicate of #1390
Thanks for the quick fix. Do we have a rough ETA on when we'll get this build? Any chance it could be prioritised for main release / merge back to 1.5 or something? It's effecting a lot of users since iOS 14 rolled out.
I think this was pushed into the new 1.6 preview
Yes, please! iOS 14 has been out for 2 months. I don't understand how such obvious bugs take so long to get released. This is blocking an app release for us. Given how often Xamarin libraries break, I'm extremely hesitant to try a preview.
I think this was pushed into the new 1.6 preview
Any timelines when 1.6 will be released fully?
Any updates regarding this issue? I have still get the problem even when using 1.6.0-pre5
@dai15002 try 1.6.0-rc1. This version is finally working for me. I'm more than a little disappointed that it's taken 3 months to get a critical bug fix for a package called "essentials" to work with an OS whose ship date everyone knew 6 months ago.
Most helpful comment
Can confirm also experiencing this issue.