diff --git a/src/app/home/home.page.ts b/src/app/home/home.page.ts index ec0339a1d..262bf375f 100644 --- a/src/app/home/home.page.ts +++ b/src/app/home/home.page.ts @@ -134,8 +134,8 @@ export class HomePage implements OnInit { this.logDeviceInfo(); - // this.notificationsService.onReciveForeground(); - // this.notificationsService.onReciveBackground(); + this.notificationsService.onReciveForeground(); + this.notificationsService.onReciveBackground(); window.addEventListener('online', () => { // console.log('Became online') diff --git a/src/app/services/notifications.service.ts b/src/app/services/notifications.service.ts index 90b89c371..ecdbb1aa9 100644 --- a/src/app/services/notifications.service.ts +++ b/src/app/services/notifications.service.ts @@ -146,7 +146,7 @@ export class NotificationsService { onReciveForeground() { PushNotifications.addListener('pushNotificationReceived', (notification: PushNotificationSchema) => { - + console.log(notification) this.DataArray.push(notification) this.storageService.store("Notifications", this.DataArray) @@ -160,7 +160,7 @@ export class NotificationsService { onReciveBackground() { PushNotifications.addListener('pushNotificationActionPerformed', (notification: ActionPerformed) => { - + console.log(notification) /* this.DataArray.push(notification.notification) this.storageService.store("Notifications", this.DataArray) diff --git a/src/environments/environment.prod.ts b/src/environments/environment.prod.ts index 1fb4fda49..afbd1a1eb 100644 --- a/src/environments/environment.prod.ts +++ b/src/environments/environment.prod.ts @@ -1,19 +1,19 @@ export const environment = { // apiURL: 'https://gabinetedigital.dyndns.info/GabineteDigital.Services/V5/api/', - //apiURL: 'https://gd-api.oapr.gov.ao/api/', - apiURL: 'http://gpr-dev-01.gabinetedigital.local/GabineteDigital.Services/V5/api/', + apiURL: 'https://gd-api.oapr.gov.ao/api/', + //apiURL: 'http://gpr-dev-01.gabinetedigital.local/GabineteDigital.Services/V5/api/', - apiChatUrl: 'https://gdchat-dev.dyndns.info/api/v1/', - apiWsChatUrl: 'wss://gdchat-dev.dyndns.info/websocket', - /* apiChatUrl: 'https://gd-chat.oapr.gov.ao/api/v1/', - apiWsChatUrl: 'wss://gd-chat.oapr.gov.ao/websocket', */ + /* apiChatUrl: 'https://gdchat-dev.dyndns.info/api/v1/', + apiWsChatUrl: 'wss://gdchat-dev.dyndns.info/websocket', */ + apiChatUrl: 'https://gd-chat.oapr.gov.ao/api/v1/', + apiWsChatUrl: 'wss://gd-chat.oapr.gov.ao/websocket', /* apiChatUrl: 'https://www.tabularium.pt/api/v1/', apiWsChatUrl: 'wss://www.tabularium.pt/websocket', */ // apiChatUrl: 'https://www.tabularium.pt/api/v1/', production: true, domain: 'gabinetedigital.local', - defaultuser: 'paulo.pinto@gabinetedigital.local',//paulo.pinto paulo.pinto@gabinetedigital.local - defaultuserpwd: 'tabteste@006', //tabteste@006, + defaultuser: "" /* 'paulo.pinto@gabinetedigital.local' */,//paulo.pinto paulo.pinto@gabinetedigital.local + defaultuserpwd: '', //tabteste@006, chatOffline: true, presidencia: false, version: '1.0.1',