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
+1 -1
View File
@@ -105,7 +105,7 @@ export class HomePage implements OnInit {
}
mobilefirstConnect() {
WLAuthorizationManager.obtainAccessToken("").then(
window['WLAuthorizationManager'].obtainAccessToken("").then(
(token) => {
console.log('MobileFirst Server connect: Success ' + token);
+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);
+3 -3
View File
@@ -47,7 +47,7 @@ export class WebNotificationsService {
}
async onReceviNotificationWeb() {
WLAuthorizationManager.obtainAccessToken("push.mobileclient").then(
window['WLAuthorizationManager'].obtainAccessToken("push.mobileclient").then(
(token) => {
console.log('Push Notification: Success ' + token);
@@ -94,7 +94,7 @@ async onReceviNotificationWeb() {
const geturl = environment.apiURL + 'notifications/token'; */
/*
WLAuthorizationManager.obtainAccessToken("push.mobileclient").then(
window['WLAuthorizationManager'].obtainAccessToken("push.mobileclient").then(
(token) => {
console.log('Push Notification: Success ' + token);
@@ -143,7 +143,7 @@ async onReceviNotificationWeb() {
} */
/*
async onReceviNotification() {
WLAuthorizationManager.obtainAccessToken("push.mobileclient").then(
window['WLAuthorizationManager'].obtainAccessToken("push.mobileclient").then(
(token) => {
console.log('Push Notification: Success ' + token);
+1 -1
View File
@@ -1,6 +1,6 @@
function wlCommonInit() {
WLAuthorizationManager.obtainAccessToken("").then(
window['WLAuthorizationManager'].obtainAccessToken("").then(
(token) => {
console.log('MobileFirst Server connect: Success ' + token);