Wallet extension redirect

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)
                }
            })
    }
Answered by DTS Engineer in 893564022

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

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

Wallet extension redirect
 
 
Q