-
Notifications
You must be signed in to change notification settings - Fork 180
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Native Redirect #1202
Native Redirect #1202
Conversation
|
||
public struct WalletConnectRouter { | ||
public static func goBack(uri: String) { | ||
DispatchQueue.main.async { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we nee separate package to call UIApplication.shared.open
?
May be just remove Router package?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I want to keep the old solution to maintain functionality for iOS versions below 17 and to be prepared for any potential future workarounds
import UIKit | ||
|
||
public struct WalletConnectRouter { | ||
public static func goBack(uri: String) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what happens if the uri is an empty string for example?
should the function throw?
/* Redirect */ | ||
let session = getSession(topic: sessionRequest.topic) | ||
if let uri = session?.peer.redirect.native { | ||
WalletConnectRouter.goBack(uri: uri) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
how do you distinguish new router from the legacy one here?
Description
Resolves # (issue)
How Has This Been Tested?
Due Dilligence