通过“ tns run ios”启动应用程序时遇到问题。我无法理解错误是什么,需要解决什么,我将很高兴为您提供帮助! 在Android上运行应用程序时不会出错
firebase.init({
showNotificationsWhenInForeground: true,
onPushTokenReceivedCallback: function(token) {
},
onMessageReceivedCallback: function(message) {
console.log("Title: " + message.title);
console.log("Body: " + message.body);
// if your server passed a custom property called 'foo', then do this:
console.log("Value of 'foo': " + message.data.foo);
}
});