Reputation: 1741
Creating catcher in plist. When custom URL is called from safari, the app will open. But the issue is that the app opens to that screen only from where it goes to background. I want that the app always open to home screen, no matter from which screen it goes background. Hope i made my point clear. Please guide for above.
Upvotes: 0
Views: 665
Reputation: 80271
You have to add code to go back to your home screen in the handleOpenURL
handler in your app delegate. For example, if you have a reference of your main navigation controller you can do something like
[navigationController popToRootViewControllerAnimated:NO];
or in Swift
navigationController.popToRootViewControllerAnmiated(false)
The exact implementation depends on your setup.
Upvotes: 0