plugin.xml 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <plugin xmlns="http://www.phonegap.com/ns/plugins/1.0"
  3. id="de.appplant.cordova.plugin.local-notifications"
  4. version="0.4.0">
  5. <name>LocalNotifications</name>
  6. <description>A bunch of local-notification plugins for Cordova 3.x.x</description>
  7. <keywords>notification, local notification, alarm, ios, android</keywords>
  8. <license>GPL v2 License</license>
  9. <author>Sebastián Katzer (github.com/katzer)</author>
  10. <engines>
  11. <engine name="cordova" version=">=3.0.0" />
  12. </engines>
  13. <js-module src="www/local-notification.js" name="LocalNotification">
  14. <clobbers target="plugin.notification.local" />
  15. </js-module>
  16. <!-- ios -->
  17. <platform name="ios">
  18. <config-file target="config.xml" parent="/*">
  19. <feature name="LocalNotification">
  20. <param name="ios-package" value="APPLocalNotification"/>
  21. </feature>
  22. </config-file>
  23. <header-file src="src/ios/APPLocalNotification.h" />
  24. <source-file src="src/ios/APPLocalNotification.m" />
  25. </platform>
  26. <!-- android -->
  27. <platform name="android">
  28. <config-file target="res/xml/config.xml" parent="/*">
  29. <feature name="LocalNotification">
  30. <param name="android-package" value="de.appplant.cordova.plugin.LocalNotification"/>
  31. </feature>
  32. </config-file>
  33. <config-file target="AndroidManifest.xml" parent="/manifest/application">
  34. <!--
  35. * The alarm receiver is triggered when a scheduled alarm is fired. This class
  36. * reads the information in the intent and displays this information in the
  37. * Android notification bar. The notification uses the default notification
  38. * sound and it vibrates the phone.
  39. -->
  40. <receiver android:name="de.appplant.cordova.plugin.LocalNotificationReceiver" />
  41. <!--
  42. * This class is triggered upon reboot of the device. It needs to re-register
  43. * the alarms with the AlarmManager since these alarms are lost in case of
  44. * reboot.
  45. -->
  46. <receiver android:name="de.appplant.cordova.plugin.LocalNotificationRestore" >
  47. <intent-filter>
  48. <action android:name="android.intent.action.BOOT_COMPLETED" />
  49. </intent-filter>
  50. </receiver>
  51. </config-file>
  52. <config-file target="AndroidManifest.xml" parent="/manifest">
  53. <uses-permission android:name="android.permission.GET_TASKS" />
  54. </config-file>
  55. <source-file src="src/android/LocalNotificationReceiver.java" target-dir="src/de/appplant/cordova/plugin" />
  56. <source-file src="src/android/LocalNotificationOptions.java" target-dir="src/de/appplant/cordova/plugin" />
  57. <source-file src="src/android/LocalNotificationRestore.java" target-dir="src/de/appplant/cordova/plugin" />
  58. <source-file src="src/android/LocalNotification.java" target-dir="src/de/appplant/cordova/plugin" />
  59. </platform>
  60. </plugin>