Hi!
first of all thanks for this plugin!
the getToken method is returning an empty sting but the plugin is working fine with notifications. Also onTokenRefresh is not working (it is never fired).
So notifications are working but token methods are not working.
Utilities.logOnScreen simply print on device screen the message (only for my comfort)
Thank you in advance!
Cordova 6.4.0
IDE NetBeans 8.2
OS: Xubuntu 16.04
Tested on Virtual Devices:
- android 4.0.3
- android 6.0
Tested on Real device:
- Huawuei P8 lite android 6.0
`
onDeviceReady: function () {
this.receivedEvent('deviceready');
window.FirebasePlugin.onTokenRefresh(function (token) {
Utilities.logOnScreen('onTokenRefresh ' + token);
}, function (error) {
Utilities.logOnScreen('onTokenRefresh: ' + error);
});
jQuery("#getToken").click(function () {
window.FirebasePlugin.getToken(function (token) {
Utilities.logOnScreen('getToken ' + token);
console.log("token: " + token);
}, function (error) {
Utilities.logOnScreen('getToken error: ' + error);
});
});
window.FirebasePlugin.onNotificationOpen(function (notification) {
Utilities.logOnScreen('wasTapped ' + JSON.stringify(notification));
}, function (error) {
Utilities.logOnScreen('else ' + JSON.stringify(error));
});
}
`
Hi!
first of all thanks for this plugin!
the getToken method is returning an empty sting but the plugin is working fine with notifications. Also onTokenRefresh is not working (it is never fired).
So notifications are working but token methods are not working.
Utilities.logOnScreensimply print on device screen the message (only for my comfort)Thank you in advance!
Cordova 6.4.0
IDE NetBeans 8.2
OS: Xubuntu 16.04
Tested on Virtual Devices:
Tested on Real device:
`
onDeviceReady: function () {
this.receivedEvent('deviceready');
`