Telerik-Verified-Plugins / LocalNotification

Apache License 2.0
21 stars 27 forks source link

Local-notifications Disappearing After App Closes #26

Open mlibbyrh opened 7 years ago

mlibbyrh commented 7 years ago

Why are local-notifications disappearing after my app closes?

Below is my code:

cordova.plugins.notification.local.schedule({
    id: "1234",
    message: "Everyone Accounted For - No Issues",
    title: "AlterMe",
});

The local-notification successfully displays. However, local-notifications disappear as soon as the app closes. How do I make a local notification stay (regardless if the app is running or not) until the user clicks or clears it?

devfelipereis commented 6 years ago

@mlibbyrh do you have PushNotification plugin in your app? If so, try this: PushNotification.init({android: { clearNotifications: false }});