plugin.xml 6.2 KB

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