import { Component } from '@angular/core'; import { LocalNotifications } from '@ionic-native/local-notifications/ngx'; @Component({ selector: 'app-home', templateUrl: 'home.page.html', styleUrls: ['home.page.scss'], }) export class HomePage { clickSub: any; constructor(private localNotifications: LocalNotifications) {} simpleNotif() { this.localNotifications.schedule({ id: 1, text: 'Single Local Notification', data: { secret: 'secret' } }); } }