Skip to content

Commit da3aa33

Browse files
committed
Properly set intent immutable flag after reboot
1 parent 1b143a8 commit da3aa33

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

com.unity.mobile.notifications/Runtime/Android/Plugins/com/unity/androidnotifications/UnityNotificationRestartOnBootReceiver.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public void onReceive(Context context, Intent received_intent) {
3838
Intent openAppIntent = UnityNotificationManager.buildOpenAppIntent(context, UnityNotificationUtilities.getOpenAppActivity(context, true));
3939
openAppIntent.putExtra(KEY_NOTIFICATION, notification);
4040

41-
PendingIntent pendingIntent = PendingIntent.getActivity(context, id, openAppIntent, 0);
41+
PendingIntent pendingIntent = UnityNotificationManager.getActivityPendingIntent(context, id, openAppIntent, 0);
4242
Intent intent = UnityNotificationManager.buildNotificationIntent(context);
4343
Notification.Builder notificationBuilder = UnityNotificationUtilities.recoverBuilder(context, notification);
4444
if (notificationBuilder == null)

0 commit comments

Comments
 (0)