Forget to save home page

This commit is contained in:
Eudes Inácio
2021-11-05 10:44:36 +01:00
parent 9b96676543
commit 7378bb3dca
-17
View File
@@ -24,10 +24,6 @@ import { Storage } from '@ionic/storage';
import { EventsService } from 'src/app/services/events.service'; import { EventsService } from 'src/app/services/events.service';
import { ScreenOrientation } from '@ionic-native/screen-orientation/ngx'; import { ScreenOrientation } from '@ionic-native/screen-orientation/ngx';
<<<<<<< HEAD
=======
>>>>>>> migraCapacitor
@Component({ @Component({
selector: 'app-home', selector: 'app-home',
templateUrl: './home.page.html', templateUrl: './home.page.html',
@@ -87,11 +83,7 @@ export class HomePage implements OnInit {
private offlinemanager: OfflineManagerService, private offlinemanager: OfflineManagerService,
private storage: Storage, private storage: Storage,
private eventservice: EventsService, private eventservice: EventsService,
<<<<<<< HEAD
private screenOrientation: ScreenOrientation) {
=======
private screenOrientation: ScreenOrientation,) { private screenOrientation: ScreenOrientation,) {
>>>>>>> migraCapacitor
/* this.webNotificationPopupService.askNotificationPermission() */ /* this.webNotificationPopupService.askNotificationPermission() */
@@ -121,22 +113,13 @@ export class HomePage implements OnInit {
ngOnInit() { ngOnInit() {
<<<<<<< HEAD
this.notificationsService.onReceviNotification();
=======
this.notificationsService.onReciveForeground(); this.notificationsService.onReciveForeground();
this.notificationsService.onReciveBackground(); this.notificationsService.onReciveBackground();
>>>>>>> migraCapacitor
window.addEventListener('online', () => { window.addEventListener('online', () => {
console.log('Became online') console.log('Became online')
this.backgroundservice.online() this.backgroundservice.online()
if (this.platform.is('desktop') || this.platform.is('mobileweb')) { if (this.platform.is('desktop') || this.platform.is('mobileweb')) {
<<<<<<< HEAD
this.webnotification.webconnection();
=======
>>>>>>> migraCapacitor
} else { } else {
/* this.notificationsService.onReceviNotification(); */ /* this.notificationsService.onReceviNotification(); */
this.offlinemanager.synchnize() this.offlinemanager.synchnize()