WalletConnect / kotlin-walletconnect-lib

library to use WalletConnect with Kotlin or Java
MIT License
147 stars 100 forks source link

How to link Trust Wallet to evoke authorized login #74

Open wangtingshun opened 2 years ago

wangtingshun commented 2 years ago

public static void goTrustWallet(Activity activity, Session.Config config){ try { Intent intent = new Intent(Intent.ACTION_VIEW); intent.setPackage("com.wallet.crypto.trustapp"); intent.setData(Uri.parse(config.toWCUri())); activity.startActivity(intent); } catch (Exception e) { e.printStackTrace(); IntentUtils.launchAppDetail(activity, "com.wallet.crypto.trustapp"); } Log.i("LoginActivity","Trust:"+"https://link.trustwallet.com/wc?uri="+config.toWCUri()); }

I can't evoke the authorization page