How to close Safari from my App - ios

Is that possible and if yes how can I close Safari which I had opened from my app itself.
If anyone knows please let me know. Thanks in advance.

You can't close other apps from your app.
But instead of opening Safari, you could open a view controller with a UIWebView to show the webpage you are opening in Safari.

Of course you cannot.Except that safari browser has some sdks you can use.But in that case you must register your app's url scheme in your app in my opinion.

Related

How can I open an external link from a PWA in iOS that opens as a Safari browser?

I have the following problem:
I have a PWA in iOS and I want to open an external link(<a>...</a>) (Not as a PWA window) as a download link. A new window opens, but unfortunately I can't get back into the PWA. I am virtually stuck in the iOS download window.
Using target="_blank" does not help unfortunately.
Does anyone have the same problem and know how to solve it?
Many kind regards

Deep link to open Safari from another app

Is there a deep link that will open a page in Safari from another app?
I have tried
safari://https://www.google.com
safari://www.google.com
but it doesn't work. I get the pop-up asking if I want to leave the current app, but Safari doesn't open.
This is the equivalent for Chrome, which works:
googlechrome://www.google.com
safari-https://www.google.com ...
is the simple solution to this issue

Open in [MyAppName] from WKWebView

Can I achieve the Open in [MyAppName] banner using a WKWebView?
Open in MyAppName
I have submitted an app [written in Swift] which prompts the user to sign in to a google account through Safari and open a .csv file of a report. When the report is opened the user is presented with the Open in [MyAppName] banner. They click it, the app launches with the contents of the URL and it all works perfectly.
Apple have rejected the app saying that navigating the user to Safari is a 'poor user experience' and suggest I use a Safari View Controller. As this is available for iOS9+ and I want to target iOS8+ I am looking to use a WKWebView but I can't seem to get the Open in [MyAppName] banner to appear. I'm not aware that this functionality is even possible with WKWebView.
I've messaged Apple to ask them but I find them so slow to reply.
Thanks in advance
Steve

How to open Safari from ios app with specified cookies

I want to open Safari from my iOS application with specified cookies. But i found that NSHTTPCookieStorage is not shared between apps in iOS. So i don't know how to do that. Please help.
I suggest to go with SFSafariViewController which will launch the web page inside your app and whatever the cookies you have those will be retained by SFSafariViewController without extra work.

How to force an iTunes URL to open in Safari on the iPhone?

I have the following URL which links to the product page of a Mac app. I'd like to provide this URL inside my iPhone app. However, it always launches the App Store and subsequently can't display the product because it's not an iOS app. How would I tell it to open in Safari? Is this even possible?
http://itunes.apple.com/us/app/appname/idxxxxxxxxx
Haven't found an answer, so opted for directing to Appshoper URL instead.

Resources