Skip to content

Commit bc7e197

Browse files
authored
[BKNDLSS-28250] Push notifications with Android 12 (#519)
1 parent 44b5d8b commit bc7e197

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/com/backendless/push/BackendlessFCMService.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,8 @@ private void fallBackMode( Context context, String message, String contentTitle,
178178

179179
Intent notificationIntent = context.getPackageManager().getLaunchIntentForPackage( context.getApplicationInfo().packageName );
180180
notificationIntent.putExtras( newBundle );
181-
PendingIntent contentIntent = PendingIntent.getActivity( context, notificationId * 3, notificationIntent, 0 );
181+
PendingIntent contentIntent = PendingIntent.getActivity(
182+
context, notificationId * 3, notificationIntent, PendingIntent.FLAG_IMMUTABLE );
182183

183184
notificationBuilder.setContentIntent( contentIntent )
184185
.setSmallIcon( appIcon )

0 commit comments

Comments
 (0)