diff --git a/Manito/Manito/Global/Supports/Info.plist b/Manito/Manito/Global/Supports/Info.plist index e2c91df8f..c8823b480 100644 --- a/Manito/Manito/Global/Supports/Info.plist +++ b/Manito/Manito/Global/Supports/Info.plist @@ -2,6 +2,19 @@ + CFBundleURLTypes + + + CFBundleTypeRole + Editor + CFBundleURLName + com.TeamFirefighter.Manito + CFBundleURLSchemes + + manito + + + LSApplicationQueriesSchemes instagram-stories diff --git a/Manito/Manito/Global/Supports/SceneDelegate.swift b/Manito/Manito/Global/Supports/SceneDelegate.swift index 0cdfc153a..1a709847b 100644 --- a/Manito/Manito/Global/Supports/SceneDelegate.swift +++ b/Manito/Manito/Global/Supports/SceneDelegate.swift @@ -31,6 +31,20 @@ class SceneDelegate: UIResponder, UIWindowSceneDelegate { func sceneWillEnterForeground(_ scene: UIScene) { } func sceneDidEnterBackground(_ scene: UIScene) { } + + func scene(_ scene: UIScene, openURLContexts URLContexts: Set) { + var host: String + + if #available(iOS 16.0, *) { + host = URLContexts.first?.url.host() ?? "" + } else { + host = URLContexts.first?.url.host ?? "" + } + + if host != "" { + + } + } } extension SceneDelegate {