plugin.xml 6.1 KB

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