Hello, I'm implementing the wallet extension for a financial app. Right now I'm having a problem, I want to redirect to the main app when the user hasn't logged in. Is it possible?
This is my code in the WalletUI. It just doesn't work.
let urlString = "bank://login"
guard let url = URL(string: urlString) else { return }
self.extensionContext?.open(url, completionHandler: { success in
if !success {
print("Success")
} else {
self.completionHandler?(.canceled)
}
})
}
Hi @MonzGomz,
Please review the sample code project to learn best practices:
Implementing Wallet Extensions
https://developer.apple.com/documentation/PassKit/implementing-wallet-extensions
Cheers,
Paris X Pinkney | WWDR | DTS Engineer