Closed text4lilac closed 2 years ago
We use deeplinking together with url_launcher.
Once you create a session with createSession
, you can launch the uri with the launch
method of url_launcher
.
final session = await connector.createSession(
chainId: 4160,
onDisplayUri: (uri) async {
print(uri);
try {
if (!await launch(uri)) {
emit(WalletConnectNotInstalled());
return;
}
} catch (ex) {
emit(WalletConnectFailure(code: 1, message: ''));
}
},
);
on iOS you can use universal link of wallet and make sure you call launch like this:
launch(
deepLink,
universalLinksOnly: true,
forceSafariVC: false,
);
thank you.working properly
We use deeplinking together with url_launcher. Once you create a session with
createSession
, you can launch the uri with thelaunch
method ofurl_launcher
.final session = await connector.createSession( chainId: 4160, onDisplayUri: (uri) async { print(uri); try { if (!await launch(uri)) { emit(WalletConnectNotInstalled()); return; } } catch (ex) { emit(WalletConnectFailure(code: 1, message: '')); } }, );
thank you (working proper)
awsome package,can any one tell me how to add deep linking using this package??