We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
it is true that it is easy to install but it is not enough just to install it.
An index.js or demo.js would be appreciated to know how to obtain the variables since the type I use as the following does not work.
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.onTokenRefresh(function(token) { alert( token ); });
FCMPluginNG.getToken(function(token){ alert(token); });
}
};
`app.initialize();
thanks for your time, it's a great plugin.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
it is true that it is easy to install but it is not enough just to install it.
An index.js or demo.js would be appreciated to know how to obtain the variables since the type I use as the following does not work.
var app = {
// Application Constructor
initialize: function() {
document.addEventListener('deviceready', this.onDeviceReady.bind(this), false);
},
FCMPluginNG.onTokenRefresh(function(token)
{
alert( token );
});
FCMPluginNG.getToken(function(token){
alert(token);
});
};
`app.initialize();
thanks for your time, it's a great plugin.
The text was updated successfully, but these errors were encountered: