-
Notifications
You must be signed in to change notification settings - Fork 31
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
Currently primal is using a constant package id for opening the android signer but the nip states you should check for any installed signer like this:
fun isExternalSignerInstalled(context: Context): Boolean {
val intent =
Intent().apply {
action = Intent.ACTION_VIEW
data = Uri.parse("nostrsigner:")
}
val infos = context.packageManager.queryIntentActivities(intent, 0)
return infos.size > 0
}When using the get_public_key you should save the package name returned by the signer in something like the shared prefs and use that package name
val packageName = intent.data?.getStringExtra("package")Steps to reproduce
You can test this by using nowser or using Amber in debug mode
Expected behavior
A clear and concise description of what you expected to happen.
Environment
- Details that you think may affect.
Additional context
Add any other context about the problem here.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working