This commit is contained in:
Peter Maquiran
2021-08-25 11:51:02 +01:00
parent f469fa0588
commit 40667918ff
6 changed files with 41 additions and 10 deletions
+15 -3
View File
@@ -71,7 +71,7 @@ export class HomePage implements OnInit {
constructor(private zone: NgZone,
private router: Router,
public modalCtrl: AlertController,
private notificatinsservice: NotificationsService,
private notificationsService: NotificationsService,
private platform: Platform,
private activeroute: ActivatedRoute,
// private network: NetworkService,
@@ -99,6 +99,18 @@ export class HomePage implements OnInit {
//this.folderId = this.navParams.get('folderId');
}
this.notificationsService.registerCallback(
'Create Depacho',
() =>{
this.refreshing()
}
)
}
refreshing() {
}
ngOnInit() {
@@ -109,8 +121,8 @@ export class HomePage implements OnInit {
console.log('Notifications not supported')
} else {
this.mobilefirstConnect();
this.notificatinsservice.getAndpostToken2();
this.notificatinsservice.onReceviNotification();
this.notificationsService.getAndpostToken2();
this.notificationsService.onReceviNotification();
}
}