diff --git a/src/app/services/notification/web-notification-popup.service.ts b/src/app/services/notification/web-notification-popup.service.ts index 9520630a9..e4e89dc64 100644 --- a/src/app/services/notification/web-notification-popup.service.ts +++ b/src/app/services/notification/web-notification-popup.service.ts @@ -1,15 +1,18 @@ import { Injectable } from '@angular/core'; - +import { AlertController, Platform } from '@ionic/angular'; @Injectable({ providedIn: 'root' }) export class WebNotificationPopupService { - constructor() { } + constructor( private platform: Platform) { } askNotificationPermission() { + if (this.platform.is('desktop') || this.platform.is('mobileweb')) {} + else {return false} + // function to actually ask the permissions function handlePermission(permission) {} diff --git a/src/app/services/socket/synchro.service.ts b/src/app/services/socket/synchro.service.ts index 8881a2829..dd19ac1f2 100644 --- a/src/app/services/socket/synchro.service.ts +++ b/src/app/services/socket/synchro.service.ts @@ -136,7 +136,7 @@ class SynchroService { if(window['platform'].is('desktop') || this.platform.is('mobileweb')) {} else return false - // if(environment.production) return false + if(environment.production) return false this.callBacks.forEach((e)=> {