-
Notifications
You must be signed in to change notification settings - Fork 14
Open
Description
hi! trying to connect to Rabby with reown library and looks like you're not handling "wc:" links. i'm looking for an activity that can resolve this kind of link and your app is not on the list (it's installed on my phone)
here is the code
fun getAvailableWallets(): List<WalletItem> {
val intent = Intent().apply {
data = Uri.parse("wc:")
}
val manager = context.packageManager
val localWallets = localWalletsRepository.walletIdAndVersionList()
val resolveInfos = manager.queryIntentActivities(intent, 0)
return resolveInfos.map { resolveInfo ->
WalletItem(
resolveInfo.loadLabel(manager).toString(),
resolveInfo.loadIcon(manager),
resolveInfo.activityInfo.packageName,
resolveInfo.activityInfo.name,
localWallets.firstOrNull { it.packageName.value == resolveInfo.activityInfo.packageName }?.version
)
}
}
yiukamsum
Metadata
Metadata
Assignees
Labels
No labels