From a7c4f204dcf8e2e37e3ea0d267a626d368a0553f Mon Sep 17 00:00:00 2001 From: greenart7c3 Date: Mon, 1 Jun 2026 07:52:52 -0300 Subject: [PATCH] Ignore empty "nostrsigner:" intents to allow app opening MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Intents containing only the "nostrsigner:" URI scheme are now treated as empty requests and ignored by the parser. This allows the scheme to be used to bring the app to the foreground—such as when a user needs to handle pending bunker requests—without triggering event processing errors. --- .../java/com/greenart7c3/nostrsigner/service/IntentUtils.kt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/src/main/java/com/greenart7c3/nostrsigner/service/IntentUtils.kt b/app/src/main/java/com/greenart7c3/nostrsigner/service/IntentUtils.kt index 5133c871..8a045e5e 100644 --- a/app/src/main/java/com/greenart7c3/nostrsigner/service/IntentUtils.kt +++ b/app/src/main/java/com/greenart7c3/nostrsigner/service/IntentUtils.kt @@ -624,6 +624,11 @@ object IntentUtils { return null } + if (intent.dataString == "nostrsigner:" && BunkerRequestUtils.getBunkerRequests().isNotEmpty()) { + // ditto send this empty request just to open the app when the user has not approved/rejected the bunker request + return null + } + if (intent.extras?.getString("id") == null || intent.extras?.getString("id") == "") { intent.putExtra("id", UUID.randomUUID().toString()) }