Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion Android/app/src/main/java/app/intra/sys/IntraVpnService.java
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
6 changes: 3 additions & 3 deletions Android/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -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
Loading