How to make cordova local notification on android sticky

I'm using this cordova plugin and wondering is it possible to make local notifications sticky / non-removable?

+3


source to share


1 answer


It wasn't that bad. Just set the "ongoing: true" builtin option in the plugin:

scheduleActiveAlarm = function () {
  cordova.plugins.notification.local.schedule({
      id: 1,
      text: 'Test text',
      ongoing: true
  });
};

      



https://github.com/katzer/cordova-plugin-local-notifications/wiki/04.-Scheduling

+4


source







All Articles