Search code examples
androidcordovaphonegap-pluginsalarmmanagerandroid-alarms

How to set a reliable long-term alarm in Android?


I'm developing an Android app with Phonegap. I need to set a long-term alarm to remind users things like a monthly task.

I was searching plugins for this, but the most popular plugin that I found it doesn't have enough reliability. I've tried to use it, but it only works with short-term alarms and not always.

I asked the developer, and he says that he doesn't know why it fails.

In this situation, I intend to develop my own plugin that help me with this.

I have a medium experience with Android native but I have a question before:

¿Which is the way to set this long-term alarm with high reliability on Android, preferably without services and in the simplest way? ¿It's possible?

Of course, I want to keep the alarms even If the mobile is restarted, If the app is killed and so on.

PD: Thanks and sorry for my english level.


Solution

  • Katzer has rewritten all the plugin in a new version, recently I have been testing it and it seems that it runs well.