plugin.xml 3.7 KB

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