Pipeline bug on ibm packge solved

This commit is contained in:
Eudes Inácio
2021-07-08 10:48:26 +01:00
parent 0cee14c524
commit e91adc07fe
4 changed files with 11 additions and 11 deletions
+6 -6
View File
@@ -43,11 +43,11 @@ export class NotificationsService {
const geturl = environment.apiURL + 'notifications/token';
WLAuthorizationManager.obtainAccessToken("push.mobileclient").then(
window['WLAuthorizationManager'].obtainAccessToken("push.mobileclient").then(
(token) => {
console.log('Push Notification: Success ' + token);
MFPPush.initialize(
window['MFPPush'].initialize(
function (successResponse) {
console.log("Push notification Successfully Service intialized: " + successResponse);
},
@@ -56,7 +56,7 @@ export class NotificationsService {
}
);
MFPPush.registerDevice(null, (successResponse) => {
window['MFPPush'].registerDevice(null, (successResponse) => {
console.log("Successfully registered: " + JSON.stringify(successResponse));
console.log('token: ', successResponse.deviceId)
this.storageService.store(username, successResponse.deviceId);
@@ -92,14 +92,14 @@ export class NotificationsService {
}
async onReceviNotification() {
WLAuthorizationManager.obtainAccessToken("push.mobileclient").then(
window['WLAuthorizationManager'].obtainAccessToken("push.mobileclient").then(
(token) => {
console.log('Push Notification: Success ' + token);
MFPPush.initialize(
window['MFPPush'].initialize(
function (successResponse) {
console.log("Push notification Successfully intialized: " + successResponse);
MFPPush.registerNotificationsCallback(notificationReceived);
window['MFPPush'].registerNotificationsCallback(notificationReceived);
},
function (failureResponse) {
console.log("Push notification failure intialized: " + failureResponse);