plugin.xml 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  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-notification"
  5. version="0.8.0dev">
  6. <name>LocalNotification</name>
  7. <description>The purpose of the plugin is to create an platform independent javascript interface for Cordova based mobile applications to access the specific Notification API on each platform.</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" onload="true" />
  24. <param name="onload" value="true" />
  25. </feature>
  26. </config-file>
  27. <header-file src="src/ios/APPLocalNotification.h" />
  28. <source-file src="src/ios/APPLocalNotification.m" />
  29. <header-file src="src/ios/APPLocalNotificationOptions.h" />
  30. <source-file src="src/ios/APPLocalNotificationOptions.m" />
  31. <source-file src="src/ios/UIApplication+APPLocalNotification.h" />
  32. <source-file src="src/ios/UIApplication+APPLocalNotification.m" />
  33. <header-file src="src/ios/UILocalNotification+APPLocalNotification.h" />
  34. <source-file src="src/ios/UILocalNotification+APPLocalNotification.m" />
  35. </platform>
  36. <!-- android -->
  37. <platform name="android">
  38. <config-file target="res/xml/config.xml" parent="/*">
  39. <feature name="LocalNotification">
  40. <param name="android-package" value="de.appplant.cordova.plugin.localnotification.LocalNotification"/>
  41. </feature>
  42. </config-file>
  43. <config-file target="AndroidManifest.xml" parent="/manifest/application">
  44. <!--
  45. * The alarm receiver is triggered when a scheduled alarm is fired. This class
  46. * reads the information in the intent and displays this information in the
  47. * Android notification bar. The notification uses the default notification
  48. * sound and it vibrates the phone.
  49. -->
  50. <receiver android:name="de.appplant.cordova.plugin.localnotification.Receiver" />
  51. <!--
  52. * The delete intent receiver is triggered when the user clears a notification
  53. * manually. It unpersists the cleared notification from the shared preferences.
  54. -->
  55. <receiver android:name="de.appplant.cordova.plugin.localnotification.DeleteIntentReceiver" />
  56. <!--
  57. * This class is triggered upon reboot of the device. It needs to re-register
  58. * the alarms with the AlarmManager since these alarms are lost in case of
  59. * reboot.
  60. -->
  61. <receiver android:name="de.appplant.cordova.plugin.localnotification.Restore" >
  62. <intent-filter>
  63. <action android:name="android.intent.action.BOOT_COMPLETED" />
  64. </intent-filter>
  65. </receiver>
  66. <!--
  67. * The receiver activity is triggered when a notification is clicked by a user.
  68. * The activity calls the background callback and brings the launch inten
  69. * up to foreground.
  70. -->
  71. <activity android:name="de.appplant.cordova.plugin.localnotification.ReceiverActivity" android:launchMode="singleInstance" android:theme="@android:style/Theme.NoDisplay" />
  72. </config-file>
  73. <config-file target="AndroidManifest.xml" parent="/manifest">
  74. <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
  75. </config-file>
  76. <lib-file src="libs/android/android-support-v4.jar" />
  77. <source-file src="src/android/LocalNotification.java" target-dir="src/de/appplant/cordova/plugin/localnotification" />
  78. <source-file src="src/android/Receiver.java" target-dir="src/de/appplant/cordova/plugin/localnotification" />
  79. <source-file src="src/android/Options.java" target-dir="src/de/appplant/cordova/plugin/localnotification" />
  80. <source-file src="src/android/Restore.java" target-dir="src/de/appplant/cordova/plugin/localnotification" />
  81. <source-file src="src/android/ReceiverActivity.java" target-dir="src/de/appplant/cordova/plugin/localnotification" />
  82. <source-file src="src/android/DeleteIntentReceiver.java" target-dir="src/de/appplant/cordova/plugin/localnotification" />
  83. </platform>
  84. <!-- wp8 -->
  85. <platform name="wp8">
  86. <config-file target="config.xml" parent="/*">
  87. <feature name="LocalNotification">
  88. <param name="wp-package" value="LocalNotification"/>
  89. </feature>
  90. </config-file>
  91. <source-file src="src/wp8/LocalNotification.cs" />
  92. <source-file src="src/wp8/Options.cs" />
  93. </platform>
  94. </plugin>