plugin.xml 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  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.1dev">
  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>LGPL v2.1 License</license>
  10. <author>Sebastián Katzer (github.com/katzer)</author>
  11. <engines>
  12. <engine name="cordova" version=">=3.0.0" />
  13. </engines>
  14. <dependency id="org.apache.cordova.device" url="https://github.com/apache/cordova-plugin-device" />
  15. <js-module src="www/local-notification.js" name="LocalNotification">
  16. <clobbers target="plugin.notification.local" />
  17. </js-module>
  18. <!-- ios -->
  19. <platform name="ios">
  20. <config-file target="config.xml" parent="/*">
  21. <feature name="LocalNotification">
  22. <param name="ios-package" value="APPLocalNotification"/>
  23. </feature>
  24. </config-file>
  25. <header-file src="src/ios/APPLocalNotification.h" />
  26. <source-file src="src/ios/APPLocalNotification.m" />
  27. </platform>
  28. <!-- android -->
  29. <platform name="android">
  30. <config-file target="res/xml/config.xml" parent="/*">
  31. <feature name="LocalNotification">
  32. <param name="android-package" value="de.appplant.cordova.plugin.localnotification.LocalNotification"/>
  33. </feature>
  34. </config-file>
  35. <config-file target="AndroidManifest.xml" parent="/manifest/application">
  36. <!--
  37. * The alarm receiver is triggered when a scheduled alarm is fired. This class
  38. * reads the information in the intent and displays this information in the
  39. * Android notification bar. The notification uses the default notification
  40. * sound and it vibrates the phone.
  41. -->
  42. <receiver android:name="de.appplant.cordova.plugin.localnotification.Receiver" />
  43. <!--
  44. * This class is triggered upon reboot of the device. It needs to re-register
  45. * the alarms with the AlarmManager since these alarms are lost in case of
  46. * reboot.
  47. -->
  48. <receiver android:name="de.appplant.cordova.plugin.localnotification.Restore" >
  49. <intent-filter>
  50. <action android:name="android.intent.action.BOOT_COMPLETED" />
  51. </intent-filter>
  52. </receiver>
  53. </config-file>
  54. <config-file target="AndroidManifest.xml" parent="/manifest">
  55. <uses-permission android:name="android.permission.GET_TASKS" />
  56. <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
  57. </config-file>
  58. <source-file src="src/android/LocalNotification.java" target-dir="src/de/appplant/cordova/plugin/localnotification" />
  59. <source-file src="src/android/Receiver.java" target-dir="src/de/appplant/cordova/plugin/localnotification" />
  60. <source-file src="src/android/Options.java" target-dir="src/de/appplant/cordova/plugin/localnotification" />
  61. <source-file src="src/android/Restore.java" target-dir="src/de/appplant/cordova/plugin/localnotification" />
  62. </platform>
  63. <!-- wp8 -->
  64. <platform name="wp8">
  65. <config-file target="config.xml" parent="/*">
  66. <feature name="LocalNotification">
  67. <param name="wp-package" value="LocalNotification"/>
  68. </feature>
  69. </config-file>
  70. <source-file src="src/wp8/LocalNotification.cs" />
  71. <source-file src="src/wp8/LocalNotificationOptions.cs" />
  72. </platform>
  73. </plugin>