This commit is contained in:
Eudes Inácio
2021-10-07 16:22:31 +01:00
parent b6614f5c6c
commit 15840100a2
10 changed files with 7693 additions and 12848 deletions
+3 -3
View File
@@ -106,11 +106,11 @@ export class NotificationsService {
}
);
window['MFPPush'].registerDevice(null, (successResponse) => {
window['MFPPush'].registerDevice(null, async (successResponse) => {
console.log("Successfully registered: " + JSON.stringify(successResponse));
console.log('token: ', successResponse.deviceId)
this.storageService.store(username, successResponse.deviceId);
this.storageService.get(username).then(value => {
await this.storageService.store(username, successResponse.deviceId);
await this.storageService.get(username).then(value => {
console.log('STORAGE TOKEN', value)
this.storageService.get(AuthConnstants.USER).then(res => {
console.log('USERID', res);