mirror of
https://github.com/nostr-protocol/nips.git
synced 2024-12-13 19:06:24 +00:00
Apply suggestions from code review
Co-authored-by: dluvian <133484344+dluvian@users.noreply.github.com>
This commit is contained in:
parent
bf7294b223
commit
07074d8ba2
6
100.md
6
100.md
@ -4,13 +4,13 @@
|
||||
|
||||
`draft` `optional`
|
||||
|
||||
This NIP describes a method for 2-way communication between a android signer and any Nostr client on Android. The Android signer is an Android Application and the Client can be a Web Client or an Android Application.
|
||||
This NIP describes a method for 2-way communication between an Android signer and any Nostr client on Android. The Android signer is an Android Application and the client can be a web client or an Android application.
|
||||
|
||||
# Usage for Android applications
|
||||
|
||||
The Android signer uses Intents and Content Resolvers to communicate between applications.
|
||||
|
||||
To be able to use The Android signer in your application you should this to your AndroidManifest.xml:
|
||||
To be able to use the Android signer in your application you should add this to your AndroidManifest.xml:
|
||||
|
||||
```xml
|
||||
<queries>
|
||||
@ -38,7 +38,7 @@ fun isExternalSignerInstalled(context: Context): Boolean {
|
||||
|
||||
## Using Intents
|
||||
|
||||
To get the result back from the Signer Appication you should use registerForActivityResult or rememberLauncherForActivityResult in Kotlin. If you are using another framework check the documentation of your framework or a third party library to get the result.
|
||||
To get the result back from the Signer Application you should use `registerForActivityResult` or `rememberLauncherForActivityResult` in Kotlin. If you are using another framework check the documentation of your framework or a third party library to get the result.
|
||||
|
||||
Create the Intent using the **nostrsigner** scheme:
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user