Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

UIKitThreadAccessException UIApplication.SharedApplication.CanOpenUrl

$
0
0

If I use
UIApplication.SharedApplication.CanOpenUrl(...)
to retrieve if a url can be opened on a thread other than the main thread, I get a UIKitThreadAccessException.
I understand that things related to the UI must be run on the UI thread, but CanOpenUrl() does not seem to be related to the UI. Does Apple really require calling this function from the UI thread or is it just Xamarin that (wrongly) considers calling the function from a background thread as a problem?


Viewing all articles
Browse latest Browse all 204402

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>