【发布时间】:2018-12-16 17:19:23
【问题描述】:
PushNotification.configure({
onNotification: function(notification) {
console.log( 'NOTIFICATION:', notification);
},
})
当我点击它时收到来自服务器的通知,应用程序已打开,但 onNotification 从未调用过。 我把它放在 componentDidMount() 和 App.js 中的构造函数 中,但它从未被调用过。 帮助..
【问题讨论】:
标签: react-native push-notification react-native-android jsx react-native-push-notification