0

I have implemented WKWebView in my App. I want to show a website in it which uses the location like https://www.google.com/maps.

I have added the required location usage key-value pair in info.plist.

When I first open the app there is a prompt which asks for the location.

When I click Allow the app crashes with the Thread 1: signal SIGABRT error.

This works fine when I open URL in safari.

I am using the latest iOS/XCode version.

This is the error what I am getting.

LocationDemo[6299:420581] *** Terminating app due to uncaught exception 'NSObjectNotAvailableException', reason: 'UIAlertView is deprecated and unavailable for UIScene based applications, please use UIAlertController!'
Vivek Shah
  • 430
  • 5
  • 22
  • 2
    Post the error message. – Glenn Posadas Mar 04 '20 at 04:36
  • 1
    Please share your code which has an error for better explanation. – emrcftci Mar 04 '20 at 05:12
  • 1
    @emrcftci I have added the error above, and I also get the answer for it. An error was due to UIAertView is deprecated and unavailable for UIScene based applications. So as a part of a solution to this, I have removed UIScene as per described in this answer. https://stackoverflow.com/questions/58188069/uialertview-is-deprecated-and-unavailable-for-uiscene-based-applications-please – Vivek Shah Mar 04 '20 at 18:22

0 Answers0