Return from Safari to IOS application with UIAlertView - ios

I opened a link in safari browser, its a web page for online Payment, I want to do is that when user press cancel button on webPage then it will show alert view in safari and come back to application and when user press ok then it open iOS application again, I do not have any reviews for this. I need help about this.

Related

How to handle the Return to Safari button click from ios app

I have an app that is launched from a url in safari. On the top of the app is a < safari button that returns to the calling safari tab. I would like to my app to handle the event and close resources that I'm using when the < safari button is tapped.
I've searched with no success.
There is no way to know that a user tapped the "return to previous app" link in the status bar.
All your app can detect is that it has entered the background. But of course that could happen for many other reasons.

In iOS, is it possible open a url in safari, then go back to the app and reopen safari without pushing a new url?

I have a simple app that opens a link in Safari with UIApplication.shared.open. The user might navigate to any number of urls in the site, and then hit the Back arrow in the top left corner as return to the app. Is it possible to launch Safari again, but without a new url, and simply open the tab at the same url location where navigation stopped, prior to pressing the back button? The only way I know to open Safari is to push a url it, which means a user cannot resume using a site in Safari where they left off. I would appreciate any ideas on how to implement this feature.

How can I remove the new back-to-previous-app iOS 9 button from my app?

For example, when a user logs in to my app with Facebook, I open the Facebook app for auth, and then the Facebook app switches back to my app. But from then on, "Back to Facebook" stays in the top-left.
At this time, I do it by hiding status bar. I am still looking for a better solution.

Performing a task through a website and going back to an iOS app

I'm developing an iOS 7+ app that I need to offer the option of navigating to a certain web page to let the users to fill in a form there, and after that to come back to the app's view where the user was.
Is it possible to programmatically open Safari with a given url? If it is, I suppose that then there is no way to automatically redirect the user to your app from there... right? Is then a UIWebView the only option? Is it possible to navigate back or dismiss the view with the UIWebView without the need of user interaction?
Thanks
You can open links in Safari as detailed in this post How to launch safari and open URL from iOS app
I don't believe you can set a 'callback' and have it return to your app on completion, as you have no control over the user once they have exited your app's sandbox.
Opening the link in UIWebView would provide control, as you can utilize the UIWebView callbacks.

When implementing AppLinks, the Facebook app creates a special button on the status bar and the app doesn't open up directly

I have added the meta tags in the webpage and I am using the method application:openURL:sourceApplication:annotation: to handle the incoming links, but my app doesn't open up directly. The user has to click on that special button on the status bar in the Facebook's browser in order to open the app.
Please help!

Resources