AlarmManager with phonegap

后端 未结 2 1304
予麋鹿
予麋鹿 2020-12-30 13:52

I\'m using the StatusBarNotification plugin (Android) for Phonegap to fire a notification. Now I want to to this at a specific time, and from what I\'ve read I have to use A

相关标签:
2条回答
  • 2020-12-30 14:07

    You will probably have to write a PhoneGap plugin that can do the AlarmManager stuff.

    Here are some examples of BroadcastReceivers in plugins:

    https://github.com/callback/callback-android/blob/master/framework/src/com/phonegap/NetworkManager.java

    https://github.com/phonegap/phonegap-plugins/blob/master/Android/PhoneListener/PhoneListener.java

    0 讨论(0)
  • 2020-12-30 14:19

    You should use LocalNotification.js to set alert for specific date and time. Because I had used it and it works fine.

    0 讨论(0)
提交回复
热议问题