plugin.xml 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  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. * This class is triggered upon reboot of the device. It needs to re-register
  53. * the alarms with the AlarmManager since these alarms are lost in case of
  54. * reboot.
  55. -->
  56. <receiver android:name="de.appplant.cordova.plugin.localnotification.Restore" >
  57. <intent-filter>
  58. <action android:name="android.intent.action.BOOT_COMPLETED" />
  59. </intent-filter>
  60. </receiver>
  61. <!--
  62. * The receiver activity is triggered when a notification is clicked by a user.
  63. * The activity calls the background callback and brings the launch inten
  64. * up to foreground.
  65. -->
  66. <activity android:name="de.appplant.cordova.plugin.localnotification.ReceiverActivity" android:launchMode="singleInstance" android:theme="@android:style/Theme.NoDisplay" />
  67. </config-file>
  68. <config-file target="AndroidManifest.xml" parent="/manifest">
  69. <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
  70. </config-file>
  71. <lib-file src="libs/android/android-support-v4.jar" />
  72. <source-file src="src/android/LocalNotification.java" target-dir="src/de/appplant/cordova/plugin/localnotification" />
  73. <source-file src="src/android/Receiver.java" target-dir="src/de/appplant/cordova/plugin/localnotification" />
  74. <source-file src="src/android/Options.java" target-dir="src/de/appplant/cordova/plugin/localnotification" />
  75. <source-file src="src/android/Restore.java" target-dir="src/de/appplant/cordova/plugin/localnotification" />
  76. <source-file src="src/android/ReceiverActivity.java" target-dir="src/de/appplant/cordova/plugin/localnotification" />
  77. </platform>
  78. <!-- wp8 -->
  79. <platform name="wp8">
  80. <config-file target="config.xml" parent="/*">
  81. <feature name="LocalNotification">
  82. <param name="wp-package" value="LocalNotification"/>
  83. </feature>
  84. </config-file>
  85. <source-file src="src/wp8/LocalNotification.cs" />
  86. <source-file src="src/wp8/Options.cs" />
  87. </platform>
  88. </plugin>