log firebase token to screen
This commit is contained in:
parent
ffba98a01c
commit
28dbe951a3
2 changed files with 4 additions and 0 deletions
|
|
@ -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;
|
||||
});
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue