Deep Links
This is a mandatory step if you have the GYP product (Games You Play) enabled.
Registering for Deep Linking
lucraClient.registerDeeplinkProvider { lucraDeeplink in
// use your own custom code to embed lucraDeeplink into your short link format
await YourAppDeeplinkService().pack(deeplink: lucraDeeplink)
}Handling incoming deep links
private func handleDeeplink(_ url: URL) {
YourAppDeeplinkService().unpack(deeplink: url) { url in
if let flow = lucraClient.handleDeeplink(url: url) {
self.flow = flow
} else {
// not Lucra's, resume handling in your own way
}
}
}Deep Linking from QR Code
Last updated