From 16b595b074f4e9435289e04d226b1c5607d47d42 Mon Sep 17 00:00:00 2001 From: Libin Lu Date: Tue, 13 Sep 2016 16:57:22 -0400 Subject: [PATCH] set action for notification intent --- .../java/com/evollu/react/fcm/FIRLocalMessagingHelper.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/android/src/main/java/com/evollu/react/fcm/FIRLocalMessagingHelper.java b/android/src/main/java/com/evollu/react/fcm/FIRLocalMessagingHelper.java index 71044c4..5a93828 100644 --- a/android/src/main/java/com/evollu/react/fcm/FIRLocalMessagingHelper.java +++ b/android/src/main/java/com/evollu/react/fcm/FIRLocalMessagingHelper.java @@ -154,6 +154,7 @@ public class FIRLocalMessagingHelper { intent.addFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP); intent.putExtra("notification", bundle); intent.putExtra("localNotification", true); + intent.setAction(bundle.getString("click_action")); int notificationID = bundle.containsKey("id") ? bundle.getString("id", "").hashCode() : (int) System.currentTimeMillis(); PendingIntent pendingIntent = PendingIntent.getActivity(mContext, notificationID, intent, @@ -290,4 +291,4 @@ public class FIRLocalMessagingHelper { } return array; } -} \ No newline at end of file +} -- 2.26.2