{{customDate}}
+das {{loadedEvent.workflowInstanceDataFields.StartDate | date: 'hh:mm'}} às {{loadedEvent.workflowInstanceDataFields.EndDate | date: 'hh:mm'}}
+(Não se repete)
+Repete
+{{loadedEvent.workflowInstanceDataFields.Participants}}
+{{loadedEvent.workflowInstanceDataFields.Body}}
+{{event.workflowInstanceDataFields.StartDate | date: 'hh:mm'}}
diff --git a/src/app/pages/login/login.page.ts b/src/app/pages/login/login.page.ts index 4c4adf444..6afabfa7e 100644 --- a/src/app/pages/login/login.page.ts +++ b/src/app/pages/login/login.page.ts @@ -12,10 +12,10 @@ import { NotificationsService } from 'src/app/services/notifications.service'; import { HttpClient, HttpHeaders, HttpParams } from '@angular/common/http'; import { Token } from '../../models/token.model'; -/* import { Plugins, PushNotification, PushNotificationToken, PushNotificationActionPerformed } from '@capacitor/core'; - */ -/* const { PushNotifications } = Plugins; - */ +import { Plugins, PushNotification, PushNotificationToken, PushNotificationActionPerformed } from '@capacitor/core'; + +const { PushNotifications } = Plugins; + @Component({ @@ -80,7 +80,7 @@ export class LoginPage implements OnInit { storeUserIdANdToken() { - /* (PushNotifications as any).requestPermission().then(result => { + (PushNotifications as any).requestPermission().then(result => { PushNotifications.register(); }); @@ -94,24 +94,26 @@ export class LoginPage implements OnInit { this.storageService.get(AuthConnstants.USER).then(res => { console.log('USERID', res); const headers = { 'Authorization': 'Basic cGF1bG8ucGludG9AZ2FiaW5ldGVkaWdpdGFsLmxvY2FsOnRhYnRlc3RlQDAwNg==' }; - const body = { UserId: res, + const body = { + UserId: res, TokenId: token.value, Status: 1, - Service: 1 }; + Service: 1 + }; - this.http.post