Skip to content

Commit

Permalink
fix parse int
Browse files Browse the repository at this point in the history
  • Loading branch information
pmtkh committed Aug 12, 2022
1 parent 3aafe54 commit 9a0e9c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/android/com/adobe/phonegap/push/FCMService.kt
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,7 @@ class FCMService : FirebaseMessagingService() {
val appName = getAppName(this)
val fullScreenIntent: Boolean = extras?.getString(PushConstants.FULL_SCREEN_NOTIFICATION, "").equals("1")
Log.d(TAG, "fullScreenIntent = $fullScreenIntent")
val notId = Integer.parseInt(PushConstants.NOT_ID, extras)
val notId = parseNotificationIdToInt(extras)
val activityClass: Class<out Activity?> =
if (fullScreenIntent) FullScreenActivity::class.java else PushHandlerActivity::class.java
val notificationIntent = Intent(this, activityClass)
Expand All @@ -450,7 +450,7 @@ class FCMService : FirebaseMessagingService() {
var requestCode = random.nextInt()
val contentIntent = PendingIntent.getActivity(
this,
requestCode,
requestCode,FCMService
notificationIntent,
PendingIntent.FLAG_UPDATE_CURRENT
)
Expand Down

0 comments on commit 9a0e9c3

Please sign in to comment.