Skip to content

reown AppKit (former wallet connect) support #482

@xemniz

Description

@xemniz

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
            )
        }
    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions