log firebase token to screen

This commit is contained in:
Kadir Sekha 2017-11-13 22:40:48 +09:00
commit 28dbe951a3
2 changed files with 4 additions and 0 deletions

View file

@ -11,6 +11,7 @@ angular.module('copayApp.services').factory('firebaseEventsService', function fi
FirebasePlugin.getToken(function(token) {
$log.debug('Get token for events: ' + token);
$log.debug(token);
_token = token;
});
}
@ -25,6 +26,7 @@ angular.module('copayApp.services').factory('firebaseEventsService', function fi
FirebasePlugin.onTokenRefresh(function(token) {
if (!token) return;
$log.debug('Refresh and update token for events...');
$log.debug(token);
_token = token;
});
}

View file

@ -17,6 +17,7 @@ angular.module('copayApp.services').factory('pushNotificationsService', function
//Keep in mind the function will return null if the token has not been established yet.
FirebasePlugin.getToken(function(token) {
$log.debug('Get token for push notifications: ' + token);
$log.debug(token);
_token = token;
root.enable();
});
@ -104,6 +105,7 @@ angular.module('copayApp.services').factory('pushNotificationsService', function
FirebasePlugin.onTokenRefresh(function(token) {
if (!token) return;
$log.debug('Refresh and update token for push notifications...');
$log.debug(token);
_token = token;
root.enable();
});