plugin.xml 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  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.2">
  6. <name>LocalNotifications</name>
  7. <description>A bunch of local-notification plugins for Cordova 3.x.x</description>
  8. <repo>https://github.com/katzer/cordova-plugin-local-notifications.git</repo>
  9. <keywords>notification, local notification, alarm, scheduler, tile, live tiles, ios, android, windows phone 8, wp8</keywords>
  10. <license>Apache 2.0</license>
  11. <author>Sebastián Katzer</author>
  12. <engines>
  13. <engine name="cordova" version=">=3.0.0" />
  14. </engines>
  15. <dependency id="org.apache.cordova.device" url="https://github.com/apache/cordova-plugin-device" />
  16. <js-module src="www/local-notification.js" name="LocalNotification">
  17. <clobbers target="plugin.notification.local" />
  18. </js-module>
  19. <!-- ios -->
  20. <platform name="ios">
  21. <config-file target="config.xml" parent="/*">
  22. <feature name="LocalNotification">
  23. <param name="ios-package" value="APPLocalNotification"/>
  24. </feature>
  25. </config-file>
  26. <header-file src="src/ios/APPLocalNotification.h" />
  27. <source-file src="src/ios/APPLocalNotification.m" />
  28. </platform>
  29. <!-- android -->
  30. <platform name="android">
  31. <config-file target="res/xml/config.xml" parent="/*">
  32. <feature name="LocalNotification">
  33. <param name="android-package" value="de.appplant.cordova.plugin.localnotification.LocalNotification"/>
  34. </feature>
  35. </config-file>
  36. <config-file target="AndroidManifest.xml" parent="/manifest/application">
  37. <!--
  38. * The alarm receiver is triggered when a scheduled alarm is fired. This class
  39. * reads the information in the intent and displays this information in the
  40. * Android notification bar. The notification uses the default notification
  41. * sound and it vibrates the phone.
  42. -->
  43. <receiver android:name="de.appplant.cordova.plugin.localnotification.Receiver" />
  44. <!--
  45. * This class is triggered upon reboot of the device. It needs to re-register
  46. * the alarms with the AlarmManager since these alarms are lost in case of
  47. * reboot.
  48. -->
  49. <receiver android:name="de.appplant.cordova.plugin.localnotification.Restore" >
  50. <intent-filter>
  51. <action android:name="android.intent.action.BOOT_COMPLETED" />
  52. </intent-filter>
  53. </receiver>
  54. <!--
  55. * The receiver activity is triggered when a notification is clicked by a user.
  56. * The activity calls the background callback and brings the launch inten
  57. * up to foreground.
  58. -->
  59. <activity android:name="de.appplant.cordova.plugin.localnotification.ReceiverActivity"></activity>
  60. </config-file>
  61. <config-file target="AndroidManifest.xml" parent="/manifest">
  62. <uses-permission android:name="android.permission.GET_TASKS" />
  63. <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
  64. </config-file>
  65. <source-file src="src/android/LocalNotification.java" target-dir="src/de/appplant/cordova/plugin/localnotification" />
  66. <source-file src="src/android/Receiver.java" target-dir="src/de/appplant/cordova/plugin/localnotification" />
  67. <source-file src="src/android/Options.java" target-dir="src/de/appplant/cordova/plugin/localnotification" />
  68. <source-file src="src/android/Restore.java" target-dir="src/de/appplant/cordova/plugin/localnotification" />
  69. <source-file src="src/android/ReceiverActivity.java" target-dir="src/de/appplant/cordova/plugin/localnotification" />
  70. </platform>
  71. <!-- wp8 -->
  72. <platform name="wp8">
  73. <config-file target="config.xml" parent="/*">
  74. <feature name="LocalNotification">
  75. <param name="wp-package" value="LocalNotification"/>
  76. </feature>
  77. </config-file>
  78. <source-file src="src/wp8/LocalNotification.cs" />
  79. <source-file src="src/wp8/LocalNotificationOptions.cs" />
  80. </platform>
  81. </plugin>