I'm using Xcode 9.4.1
. I have this code in AppDelegate.swift
:
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
UIApplication.shared.open(URL(string : "https://www.example.com")!, options: [:], completionHandler: { (status) in
})
return true
}
This will open https://www.example.com
in Safari as soon, as I click on a push notification (or open the app) and it will also open my app.
Is there a way to open https://www.example.com
in Safari without opening my app?