Open hungMta opened 2 years ago
Try this:
val intent = context?.packageManager?.getLaunchIntentForPackage("io.metamask")
intent?.action = Intent.ACTION_VIEW
intent?.data = Uri.parse(config.toWCUri())
startActivity(intent)
val intent = context?.packageManager?.getLaunchIntentForPackage("io.metamask") intent?.action = Intent.ACTION_VIEW intent?.data = Uri.parse(config.toWCUri()) startActivity(intent)
report an error:
Try this: intent = Intent(Intent.ACTION_VIEW) intent?.setPackage("io.metamask") intent?.data = Uri.parse(config.toWCUri()) startActivity(intent)
I see in the example using "wc:" schema to open wallet app and I have to choose which app I want to open in a dialog. But I want to open the app directly so how can I do that? There are any schemas to open Metmask or Trust wallet directly?
I appreciate your help.