Push notifications with capacitor runing great

This commit is contained in:
Eudes Inácio
2021-11-05 07:49:01 +01:00
parent 84f2c1cc36
commit 1d58ef0615
12 changed files with 200 additions and 131 deletions
+5 -3
View File
@@ -5,7 +5,7 @@ import { UserForm } from 'src/app/models/user.model';
import { ToastService } from 'src/app/services/toast.service';
import { environment } from 'src/environments/environment';
import { AlertController } from '@ionic/angular';
//import { NotificationsService } from 'src/app/services/notifications.service';
import { NotificationsService } from 'src/app/services/notifications.service';
import { SessionStore } from 'src/app/store/session.service';
@@ -25,7 +25,7 @@ export class InactivityPage implements OnInit {
enterWithPassword = false
constructor(
//private notificatinsservice: NotificationsService,
private notificatinsservice: NotificationsService,
private router: Router,
private authService: AuthService,
private toastService: ToastService,
@@ -141,7 +141,9 @@ export class InactivityPage implements OnInit {
}
getToken() {
//this.notificatinsservice.getAndpostToken(this.username);
this.notificatinsservice.requestPermissions();
this.notificatinsservice.registrationError();
this.notificatinsservice.getAndpostToken(this.username);
}
setCode(code: string) {