mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 20:47:54 +00:00
Forget to save home page
This commit is contained in:
@@ -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()
|
||||||
|
|||||||
Reference in New Issue
Block a user