From 061d2ac47d79819e0efa938f231f2511ac40b419 Mon Sep 17 00:00:00 2001 From: greenart7c3 Date: Fri, 1 Nov 2024 08:03:10 -0300 Subject: [PATCH 1/3] Add intent flags --- 55.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/55.md b/55.md index 54dc44a..1f7972b 100644 --- a/55.md +++ b/55.md @@ -72,6 +72,12 @@ Set the Signer package name: intent.`package` = "com.example.signer" ``` +If you are sending multiple intents without awaiting you can add some intent flags to sign all events without opening multiple times the signer + +```kotlin +intent.addFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP or Intent.FLAG_ACTIVITY_CLEAR_TOP) +``` + Send the Intent: ```kotlin From 93e6c3880beb3818b47d22c07fd11aa5f1356c41 Mon Sep 17 00:00:00 2001 From: greenart7c3 Date: Fri, 1 Nov 2024 08:16:06 -0300 Subject: [PATCH 2/3] Add launchMode for signers --- 55.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/55.md b/55.md index 1f7972b..005e4f9 100644 --- a/55.md +++ b/55.md @@ -78,6 +78,12 @@ If you are sending multiple intents without awaiting you can add some intent fla intent.addFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP or Intent.FLAG_ACTIVITY_CLEAR_TOP) ``` +If you are developing a signer application them you need to add this to your AndroidManifest.xml so clients can use the intent flags above + +```kotlin +android:launchMode="singleTop" +``` + Send the Intent: ```kotlin From 03a555beb58296bef326f6469bbcf2b73ea144f6 Mon Sep 17 00:00:00 2001 From: greenart7c3 Date: Fri, 1 Nov 2024 08:24:52 -0300 Subject: [PATCH 3/3] Add result from multiple intents --- 55.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/55.md b/55.md index 005e4f9..afca0aa 100644 --- a/55.md +++ b/55.md @@ -84,6 +84,23 @@ If you are developing a signer application them you need to add this to your And android:launchMode="singleTop" ``` +Signer MUST answer multiple permissions with an array of results + +```kotlin + +val results = listOf( + Result( + package = signerPackageName, + result = eventSignture, + id = intentId + ) +) + +val json = results.toJson() + +intent.putExtra("results", json) +``` + Send the Intent: ```kotlin