plugin.xml 3.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  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>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. <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.LocalNotificationReceiver" />
  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.LocalNotificationRestore" >
  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. </config-file>
  57. <source-file src="src/android/LocalNotificationReceiver.java" target-dir="src/de/appplant/cordova/plugin/localnotification" />
  58. <source-file src="src/android/LocalNotificationOptions.java" target-dir="src/de/appplant/cordova/plugin/localnotification" />
  59. <source-file src="src/android/LocalNotificationRestore.java" target-dir="src/de/appplant/cordova/plugin/localnotification" />
  60. <source-file src="src/android/LocalNotification.java" target-dir="src/de/appplant/cordova/plugin/localnotification" />
  61. </platform>
  62. <!-- wp8 -->
  63. <platform name="wp8">
  64. <config-file target="config.xml" parent="/*">
  65. <feature name="LocalNotification">
  66. <param name="wp-package" value="LocalNotification"/>
  67. </feature>
  68. </config-file>
  69. <source-file src="src/wp8/LocalNotification.cs" />
  70. <source-file src="src/wp8/LocalNotificationOptions.cs" />
  71. </platform>
  72. </plugin>