Skip to content

Commit 0192817

Browse files
committed
Add PendingIntent.FLAG_IMMUTABLE to sync service
* This is a required change for Android 12
1 parent 285def4 commit 0192817

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

OneSignalSDK/onesignal/src/main/java/com/onesignal/OSBackgroundSync.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ private PendingIntent syncServicePendingIntent(Context context) {
178178
context,
179179
getSyncTaskId(),
180180
new Intent(context, getSyncServicePendingIntentClass()),
181-
PendingIntent.FLAG_UPDATE_CURRENT
181+
PendingIntent.FLAG_UPDATE_CURRENT | PendingIntent.FLAG_IMMUTABLE
182182
);
183183
}
184184

0 commit comments

Comments
 (0)