Skip to content

Commit 14b2176

Browse files
authored
android: launch foreground service for starting vpn (#755)
Android 16 requires intents to start a foreground service for background starts. ACTION_START_VPN already calls startForeground() Updates tailscale/tailscale#18847 Signed-off-by: kari-ts <kari@tailscale.com>
1 parent b31c898 commit 14b2176

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • android/src/main/java/com/tailscale/ipn

android/src/main/java/com/tailscale/ipn/App.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -535,7 +535,7 @@ open class UninitializedApp : Application() {
535535
// FLAG_UPDATE_CURRENT ensures that if the intent is already pending, the existing intent will
536536
// be updated rather than creating multiple redundant instances.
537537
val pendingIntent =
538-
PendingIntent.getService(
538+
PendingIntent.getForegroundService(
539539
this,
540540
0,
541541
intent,

0 commit comments

Comments
 (0)