mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 21:06:06 +00:00
Fix
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user