Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @IBAction func addButtonPressed(_ sender: UIButton) {
- let url = URL(string: "MyAppName://")!
- extensionContext?.open(url) { isSuccess in
- switch isSuccess {
- case true: print("Open URL Success") // It print when opening app
- case false: print("Open URL Failed")
- }
- }
- }
- // This delegate function is never call when the host application lauching
- func application(_ app: UIApplication, // break point not work
- open url: URL,
- options: [UIApplicationOpenURLOptionsKey : Any] = [:]) -> Bool {
- print("FUNCTION CALLED 😠😠😠") // Never print
- return true
- }
Add Comment
Please, Sign In to add comment