React-native-firebase Unable To Handle Notification Click_action To Navigate To Notification Screen
i'm using this react-native-firebase and react-navigation for navigating and i can push notification from server or console successfully whether its in foreground or background but
Solution 1:
right now i am not using createLocalNotification(), so am able to receive a notification when my app is closed using getInitialNotification(), :)
firebase.messaging().getInitialNotification()
.then(payload => {
console.log(payload);
if(payload.slug != undefined){
this.props.navigation.navigate('notification',{slug:payload.slug});
}else{
}
});
i hope it solves your issue too
Post a Comment for "React-native-firebase Unable To Handle Notification Click_action To Navigate To Notification Screen"