Update notification intents and deep link URI format (#5408)

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
James Rich
2026-05-11 19:34:24 -05:00
committed by GitHub
parent fd0e2c0904
commit 82135df865
2 changed files with 3 additions and 3 deletions
@@ -731,7 +731,7 @@ class MeshServiceNotificationsImpl(
private val openAppIntent: PendingIntent by lazy {
val intent =
Intent(context, Class.forName("org.meshtastic.app.MainActivity")).apply {
flags = Intent.FLAG_ACTIVITY_SINGLE_TOP
flags = Intent.FLAG_ACTIVITY_NEW_TASK or Intent.FLAG_ACTIVITY_SINGLE_TOP
}
PendingIntent.getActivity(context, 0, intent, PendingIntent.FLAG_IMMUTABLE or PendingIntent.FLAG_UPDATE_CURRENT)
}
@@ -763,7 +763,7 @@ class MeshServiceNotificationsImpl(
}
private fun createOpenNodeDetailIntent(nodeNum: Int): PendingIntent {
val deepLinkUri = "$DEEP_LINK_BASE_URI/node?destNum=$nodeNum".toUri()
val deepLinkUri = "$DEEP_LINK_BASE_URI/nodes/$nodeNum".toUri()
val deepLinkIntent =
Intent(Intent.ACTION_VIEW, deepLinkUri, context, Class.forName("org.meshtastic.app.MainActivity")).apply {
flags = Intent.FLAG_ACTIVITY_SINGLE_TOP
@@ -211,7 +211,7 @@ class WifiOtaTransportTest {
try {
transport.close()
assertNull(withTimeout(1_000L) { connection.readLine() })
assertNull(withTimeout(5_000L) { connection.readLine() })
val result = transport.startOta(1L, "hash")
assertTrue(result.isFailure)