evollu / react-native-fcm

react native module for firebase cloud messaging and local notification
MIT License
1.73k stars 681 forks source link

Tapping Remote Notification in Tray does NOT open app! #1053

Closed illestrater closed 5 years ago

illestrater commented 5 years ago

Hello,

I've been facing this issue with both react-native-push-notification and react-native-fcm. I've tested on both RN version 0.53 and 0.57. It seems like for most people, this functionality works out of the box.

I've tried using click_action to no avail as well.

Here's a sample FCM message:

bigText: "afff"
category: "view"
click_action: "OPEN_MAIN_ACTIVITY"
collapse_key: "com.cuenative"
conversationId: "5bb14a8f1b99736bd39e09e4"
fcm: {
action: "view"
body: "afff"
color: null
icon: "ic_notification"
tag: null
title: "testing"
}
icon: "ic_notification"
message: "afff"
sound: "notification.mp3"
title: "testing"
userInteraction: "true"
__proto__: Object

Additionally, while using the same sound file, when testing my switch from react-native-push-notification to react-native-fcm, it does not play anymore and only plays the default notification sound.

*Note, I am also using react-native-splash-screen