Skip to content

Commit

Permalink
[BKNDLSS-28250] Push notifications with Android 12 (#519)
Browse files Browse the repository at this point in the history
  • Loading branch information
kao78 authored Nov 15, 2022
1 parent 44b5d8b commit bc7e197
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/com/backendless/push/BackendlessFCMService.java
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,8 @@ private void fallBackMode( Context context, String message, String contentTitle,

Intent notificationIntent = context.getPackageManager().getLaunchIntentForPackage( context.getApplicationInfo().packageName );
notificationIntent.putExtras( newBundle );
PendingIntent contentIntent = PendingIntent.getActivity( context, notificationId * 3, notificationIntent, 0 );
PendingIntent contentIntent = PendingIntent.getActivity(
context, notificationId * 3, notificationIntent, PendingIntent.FLAG_IMMUTABLE );

notificationBuilder.setContentIntent( contentIntent )
.setSmallIcon( appIcon )
Expand Down

0 comments on commit bc7e197

Please sign in to comment.