You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I need to implement deep linking with URL Scheme in iOS, but how can I connect that native Swift code to Voyager? The documentation suggests adding this function to the AppDelegate. How can I create this delegate class and connect it to other classes?
func application(_ app:UIApplication, open url:URL,
options:[UIApplication.OpenURLOptionsKey:Any]=[:])->Bool{
if let scheme = url.scheme,
scheme.localizedCaseInsensitiveCompare("com.myApp")==.orderedSame,let view = url.host {varparameters:[String:String]=[:]URLComponents(url: url, resolvingAgainstBaseURL: false)?.queryItems?.forEach{parameters[$0.name]= $0.value
}redirect(to: view, with: parameters)// this line how navigate with voyager??}return true
}
@ghasemdev there is no currently built-in way of handling deeplink uris in voyager. The issue #387 has a example how you can handle this your self with replaceAll for example. Also this library from the same author of the issue show how to easily handle deeplink with Voyager and Compose KMP https://github.com/theolm/Rinku
I need to implement deep linking with URL Scheme in iOS, but how can I connect that native Swift code to Voyager? The documentation suggests adding this function to the AppDelegate. How can I create this delegate class and connect it to other classes?
The text was updated successfully, but these errors were encountered: