Skip to content

Commit

Permalink
Background mode gives Error Targeting S+ (version 31 and above) on an…
Browse files Browse the repository at this point in the history
…droid

katzer#577
  • Loading branch information
jaspeon-hero committed Dec 27, 2022
1 parent abecb0b commit 9c1f17f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/android/ForegroundService.java
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ private Notification makeNotification (JSONObject settings)
intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_SINGLE_TOP);
PendingIntent contentIntent = PendingIntent.getActivity(
context, NOTIFICATION_ID, intent,
PendingIntent.FLAG_UPDATE_CURRENT);
PendingIntent.FLAG_IMMUTABLE);


notification.setContentIntent(contentIntent);
Expand Down

0 comments on commit 9c1f17f

Please sign in to comment.