katzer / cordova-plugin-local-notifications

Cordova Local-Notification Plugin
Apache License 2.0
2.57k stars 1.75k forks source link

Does not receive notifications when app is exist #1310

Closed anivaisu closed 7 years ago

anivaisu commented 7 years ago

I am using ionic 2 with cordova localnotifications

Here is my code

import { LocalNotifications } from '@ionic-native/local-notifications';

constructor(private localNotifications: LocalNotifications) { }

// Schedule a single notification this.localNotifications.schedule({ id: 1, text: 'Single ILocalNotification', sound: isAndroid? 'file://sound.mp3': 'file://beep.caf', data: { secret: key } });

It's work only when app is resumed or running.I force to closing app.doesn't receive any notifications. How can i able to do this?

KIndly advice me,

Thanks

rwillett commented 7 years ago

No template.

rwillett commented 7 years ago

Closed as no update from OP.