AppLinkAPI
Ce contenu n’est pas encore disponible dans votre langue.
struct AppLinkAPIInbound referral links and the wallet app handoff. Obtained from FrakClient.appLink.
Conforms to Swift.Sendable
Defined in: Sources/FrakSDK/AppLinkAPI.swift:4
Methods
Section titled “Methods”handleReferral(_:)
Section titled “handleReferral(_:)”@discardableResult func handleReferral(_ url: String) async -> Bool- Returns: whether the link carried a Frak referral context. Not a “stop routing” signal — still navigate to the URL either way.
handleReferral(_:)
Section titled “handleReferral(_:)”@discardableResult func handleReferral(_ url: URL) async -> BoolinstallPageURL(returnScheme:sessionId:)
Section titled “installPageURL(returnScheme:sessionId:)”func installPageURL(returnScheme: String, sessionId: String) async throws -> StringThe wallet’s hosted install page for this device.
Not the store listing — openFrakApp() handles that handoff itself. This page shows the
install code that carries attribution across an install, plus the store link, and it
carries a freshly minted frak-install-v1 proof. The sharing sheet navigates to it in
place, so the user never leaves the merchant app to reach it.
- Throws:
FrakErrorwhen the page cannot be minted: tracking is disabled, the device refused key material, or no merchant could be resolved.
isFrakAppInstalled()
Section titled “isFrakAppInstalled()”func isFrakAppInstalled() async -> BoolopenFrakApp()
Section titled “openFrakApp()”func openFrakApp() async -> OpenAppResult