которое должно переводить на определённый экран приложения ? Из Didrecieveremotenotifacion method
func application(_ application: UIApplication, open url: URL, options: [UIApplication.OpenURLOptionsKey : Any] = [:] ) -> Bool { if let message = url.host?.removingPercentEncoding { if (message == "unlockFont"){ let vc = UIStoryboard.init(name: "Main", bundle: nil).instantiateViewController(withIdentifier: "artBoard2") as! ArtBoard2ViewController navVC?.setViewControllers([vc], animated: true) } if (message == "rateUs"){ let vc = UIStoryboard.init(name: "Main", bundle: nil).instantiateViewController(withIdentifier: "artBoard2") as! ArtBoard2ViewController vc.showRatePopup = true; navVC?.setViewControllers([vc], animated: true) } if (message == "watchAds"){ let vc = UIStoryboard.init(name: "Main", bundle: nil).instantiateViewController(withIdentifier: "artBoard12") as! ArtBoard12ViewController vc.fontName = url.params()["fontName"] as? String; print(vc.fontName?.decodeUrl()) navVC?.setViewControllers([vc], animated: true) } }else{ } self.window?.rootViewController = navVC self.window?.makeKeyAndVisible() print("app open from another app") return true; }
Обсуждают сегодня