diff --git a/Android/app/src/main/java/app/intra/sys/IntraVpnService.java b/Android/app/src/main/java/app/intra/sys/IntraVpnService.java index 255e068a..50c8b166 100644 --- a/Android/app/src/main/java/app/intra/sys/IntraVpnService.java +++ b/Android/app/src/main/java/app/intra/sys/IntraVpnService.java @@ -296,7 +296,14 @@ public void signalStopService(boolean userInitiated) { builder.setSmallIcon(R.drawable.ic_status_bar) .setContentTitle(getResources().getText(R.string.warning_title)) .setContentText(getResources().getText(R.string.notification_content)) - .setFullScreenIntent(mainActivityIntent, true) // Open the main UI if possible. + // This used to be a full-screen intent, which launched the main UI directly. That has + // not worked for years: Android 10 restricts background activity starts, and Android 14 + // only grants USE_FULL_SCREEN_INTENT to calling and alarm apps, so the system silently + // downgrades the notification to a heads-up notification. Since no content intent was + // set, the result was a warning that could not be tapped at all. A content intent gives + // the same "open the main UI" behavior on every supported version, without requiring a + // permission this app is not eligible for. + .setContentIntent(mainActivityIntent) .setAutoCancel(true); if (VERSION.SDK_INT >= VERSION_CODES.LOLLIPOP) { diff --git a/Android/gradle.properties b/Android/gradle.properties index 3846e22c..734bda0a 100644 --- a/Android/gradle.properties +++ b/Android/gradle.properties @@ -27,8 +27,8 @@ android.defaults.buildfeatures.buildconfig=true android.nonTransitiveRClass=false android.nonFinalResIds=false -ANDROID_COMPILE_SDK_VERSION=35 -ANDROID_BUILD_TOOLS_VERSION=35.0.0 +ANDROID_COMPILE_SDK_VERSION=36 +ANDROID_BUILD_TOOLS_VERSION=36.0.0 ANDROID_MIN_SDK_VERSION=21 -ANDROID_TARGET_SDK_VERSION=35 +ANDROID_TARGET_SDK_VERSION=36