IBM Web notification config add

This commit is contained in:
Eudes Inácio
2021-08-25 16:29:15 +01:00
parent 8ba32333e7
commit a928241dbb
3 changed files with 12 additions and 8 deletions
+4 -2
View File
@@ -7,6 +7,7 @@ import { EventsService } from '../services/events.service';
import { Event } from '../models/event.model';
import { ProcessesService } from '../services/processes.service';
import { NotificationsService } from '../services/notifications.service';
import { WebNotificationsService } from '../services/webnotifications.service';
import { ModalController, AlertController, AnimationController, Platform } from '@ionic/angular';
import { Router, ActivatedRoute } from '@angular/router';
import { ToDayEventStorage } from '../store/to-day-event-storage.service';
@@ -73,7 +74,7 @@ export class HomePage implements OnInit {
private notificatinsservice: NotificationsService,
private platform: Platform,
private activeroute: ActivatedRoute,
// private network: NetworkService,
private webnotification: WebNotificationsService,
public p: PermissionService,
public documentCounterService: DocumentCounterService) {
@@ -105,7 +106,8 @@ export class HomePage implements OnInit {
this.network.checkNetworkDisconnection; */
console.log('Active route ', this.router.url)
if (this.platform.is('desktop') || this.platform.is('mobileweb')) {
console.log('Notifications not supported')
this.webnotification.webconnection();
this.webnotification.onReceviNotificationWeb();
} else {
this.mobilefirstConnect();
this.notificatinsservice.getAndpostToken2();