Skip to content

Commit

Permalink
fix pending intent flag
Browse files Browse the repository at this point in the history
  • Loading branch information
pmtkh committed Aug 16, 2022
1 parent 1aff7e7 commit 61c19fa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/android/com/adobe/phonegap/push/FCMService.kt
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,7 @@ class FCMService : FirebaseMessagingService() {
this,
requestCode,
notificationIntent,
PendingIntent.FLAG_UPDATE_CURRENT
PendingIntent.FLAG_MUTABLE or PendingIntent.FLAG_UPDATE_CURRENT
)
val dismissedNotificationIntent = Intent(
this,
Expand Down Expand Up @@ -690,7 +690,7 @@ class FCMService : FirebaseMessagingService() {
this,
uniquePendingIntentRequestCode,
intent,
PendingIntent.FLAG_ONE_SHOT
PendingIntent.FLAG_MUTABLE or PendingIntent.FLAG_ONE_SHOT
)
} else {
Log.d(TAG, "push receiver for notId $notId")
Expand All @@ -710,7 +710,7 @@ class FCMService : FirebaseMessagingService() {
pIntent = PendingIntent.getActivity(
this, uniquePendingIntentRequestCode,
intent,
PendingIntent.FLAG_UPDATE_CURRENT
PendingIntent.FLAG_MUTABLE or PendingIntent.FLAG_UPDATE_CURRENT
)
}

Expand Down

0 comments on commit 61c19fa

Please sign in to comment.