Open AmirBen78 opened 3 years ago
Could you pass me the code fragment that you use to obtain the token in android?
this is my index.js and i can't get the token.
var app = { // Application Constructor initialize: function() { document.addEventListener('deviceready', this.onDeviceReady.bind(this), false); },
// deviceready Event Handler
onDeviceReady: function() {
this.receivedEvent('deviceready');
this.pushNotification();
},
// Update DOM on a Received Event
receivedEvent: function(id) {
var parentElement = document.getElementById(id);
var listeningElement = parentElement.querySelector('.listening');
var receivedElement = parentElement.querySelector('.received');
listeningElement.setAttribute('style', 'display:none;');
receivedElement.setAttribute('style', 'display:block;');
console.log('Received Event: ' + id);
},
pushNotification: function(){
/***/
FCMPluginNG.onNotification(function(data)
{
if(data.wasTapped){
alert(JSON.stringify(data));
}else{
alert(JSON.stringify(data));
}
});
/***/
}
};
app.initialize();
Firebase Messaging iOS SDK version 7.0 will be a breaking change where the SDK will no longer support iOS Direct Channel API:
I think this plugin does not use direct channel API, I did not see the following code:
Do you confirm that there is no impact?