evollu / react-native-fcm

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

getting foreground notification when i tap foreground notification nothing happen android #1047

Open zirtuedeveloper opened 6 years ago

zirtuedeveloper commented 6 years ago
FCM.presentLocalNotification({
            title: notif.title,                    
            body: notif.body,                   
            priority: "high",                                   
            data: {
              gotoActivity:"email"
              key:"value"
           } ,               
            vibrate: 300,                                      
            lights: true,                                    
            show_in_foreground: true,)

        })

foreground notification tap but nothing happen in FCM.getInitialNotification()-> console.log() testing on android

react-native-fcm 16.2.0 android 5.0.1 foregound

when i tap on foregound notification i got message in logcat

removeNotification for unknown key: 0|com.zirtue.app|3355|null|10831 09-18 09:53:29.762 19197-19197/? D/PanelView: There is/are notification(s)

ghost commented 5 years ago

did you fixed this issue? i am facing exactly same as yours