forked from github/cordova-plugin-background-mode
添加PendingIntent.FLAG_IMMUTABLE标记
This commit is contained in:
@@ -224,7 +224,7 @@ public class ForegroundService extends Service {
|
||||
if (android.os.Build.VERSION.SDK_INT >= 31) {
|
||||
contentIntent= PendingIntent.getActivity(
|
||||
context, NOTIFICATION_ID, intent,
|
||||
PendingIntent.FLAG_UPDATE_CURRENT | 67108864
|
||||
PendingIntent.FLAG_UPDATE_CURRENT | 67108864);
|
||||
} else{
|
||||
contentIntent= PendingIntent.getActivity(
|
||||
context, NOTIFICATION_ID, intent,
|
||||
|
||||
Reference in New Issue
Block a user