plugin.xml 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220
  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="cordova-plugin-local-notifications"
  5. version="0.0.0">
  6. <name>LocalNotification</name>
  7. <description>The plugin supports scheduling local notifications in various ways with a single interface. It also allows you to update, clear or cancel them. There are different interfaces to query for local notifications and a complete set of events to hook into the life cycle of local notifications. To get a deep overview we recommend to read about all the topics in our wiki and try out the Kitchen Sink App</description>
  8. <repo>https://github.com/katzer/cordova-plugin-local-notifications.git</repo>
  9. <keywords>appplant, notification, local notification, user notification</keywords>
  10. <license>Apache 2.0</license>
  11. <author>Sebastián Katzer</author>
  12. <!-- cordova -->
  13. <engines>
  14. <engine name="cordova" version=">=3.6.0" />
  15. <engine name="cordova-plugman" version=">=4.3.0" />
  16. <engine name="cordova-windows" version=">=4.2.0" />
  17. <engine name="apple-ios" version=">=10.0.0" />
  18. </engines>
  19. <!-- dependencies -->
  20. <dependency id="cordova-plugin-device" />
  21. <!-- js -->
  22. <js-module src="www/local-notification.js" name="LocalNotification">
  23. <clobbers target="cordova.plugins.notification.local" />
  24. </js-module>
  25. <js-module src="www/local-notification-core.js" name="LocalNotification.Core">
  26. <clobbers target="cordova.plugins.notification.local.core" />
  27. <clobbers target="plugin.notification.local.core" />
  28. </js-module>
  29. <js-module src="www/local-notification-util.js" name="LocalNotification.Util">
  30. <merges target="cordova.plugins.notification.local.core" />
  31. <merges target="plugin.notification.local.core" />
  32. </js-module>
  33. <!-- ios -->
  34. <platform name="ios">
  35. <config-file target="config.xml" parent="/*">
  36. <feature name="LocalNotification">
  37. <param name="ios-package" value="APPLocalNotification" onload="true" />
  38. <param name="onload" value="true" />
  39. </feature>
  40. </config-file>
  41. <framework src="UserNotifications.framework" />
  42. <header-file src="src/ios/APPLocalNotification.h" />
  43. <source-file src="src/ios/APPLocalNotification.m" />
  44. <header-file src="src/ios/APPNotificationContent.h" />
  45. <source-file src="src/ios/APPNotificationContent.m" />
  46. <header-file src="src/ios/APPNotificationOptions.h" />
  47. <source-file src="src/ios/APPNotificationOptions.m" />
  48. <header-file src="src/ios/UNUserNotificationCenter+APPLocalNotification.h" />
  49. <source-file src="src/ios/UNUserNotificationCenter+APPLocalNotification.m" />
  50. <header-file src="src/ios/UNNotificationRequest+APPLocalNotification.h" />
  51. <source-file src="src/ios/UNNotificationRequest+APPLocalNotification.m" />
  52. </platform>
  53. <!-- android -->
  54. <!-- <platform name="android">
  55. <framework src="com.android.support:support-v4:+" value="gradle" />
  56. <config-file target="res/xml/config.xml" parent="/*">
  57. <feature name="LocalNotification">
  58. <param name="android-package" value="de.appplant.cordova.plugin.localnotification.LocalNotification"/>
  59. </feature>
  60. </config-file>
  61. <config-file target="AndroidManifest.xml" parent="/manifest/application">
  62. <receiver
  63. android:name="de.appplant.cordova.plugin.localnotification.TriggerReceiver"
  64. android:exported="false" />
  65. <receiver
  66. android:name="de.appplant.cordova.plugin.localnotification.ClearReceiver"
  67. android:exported="false" />
  68. <activity
  69. android:name="de.appplant.cordova.plugin.localnotification.ClickActivity"
  70. android:launchMode="singleInstance"
  71. android:theme="@android:style/Theme.NoDisplay"
  72. android:exported="false" />
  73. <receiver
  74. android:name="de.appplant.cordova.plugin.notification.TriggerReceiver"
  75. android:exported="false" />
  76. <receiver
  77. android:name="de.appplant.cordova.plugin.notification.ClearReceiver"
  78. android:exported="false" />
  79. <receiver android:name="de.appplant.cordova.plugin.localnotification.RestoreReceiver" android:exported="false" >
  80. <intent-filter>
  81. <action android:name="android.intent.action.BOOT_COMPLETED" />
  82. </intent-filter>
  83. </receiver>
  84. <activity
  85. android:name="de.appplant.cordova.plugin.notification.ClickActivity"
  86. android:launchMode="singleInstance"
  87. android:theme="@android:style/Theme.NoDisplay"
  88. android:exported="false" />
  89. </config-file>
  90. <config-file target="AndroidManifest.xml" parent="/manifest">
  91. <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
  92. <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
  93. </config-file>
  94. <source-file
  95. src="src/android/LocalNotification.java"
  96. target-dir="src/de/appplant/cordova/plugin/localnotification" />
  97. <source-file
  98. src="src/android/TriggerReceiver.java"
  99. target-dir="src/de/appplant/cordova/plugin/localnotification" />
  100. <source-file
  101. src="src/android/ClickActivity.java"
  102. target-dir="src/de/appplant/cordova/plugin/localnotification" />
  103. <source-file
  104. src="src/android/ClearReceiver.java"
  105. target-dir="src/de/appplant/cordova/plugin/localnotification" />
  106. <source-file
  107. src="src/android/RestoreReceiver.java"
  108. target-dir="src/de/appplant/cordova/plugin/localnotification" />
  109. <source-file
  110. src="src/android/notification/AbstractClearReceiver.java"
  111. target-dir="src/de/appplant/cordova/plugin/notification" />
  112. <source-file
  113. src="src/android/notification/AbstractClickActivity.java"
  114. target-dir="src/de/appplant/cordova/plugin/notification" />
  115. <source-file
  116. src="src/android/notification/AbstractRestoreReceiver.java"
  117. target-dir="src/de/appplant/cordova/plugin/notification" />
  118. <source-file
  119. src="src/android/notification/AbstractTriggerReceiver.java"
  120. target-dir="src/de/appplant/cordova/plugin/notification" />
  121. <source-file
  122. src="src/android/notification/AssetUtil.java"
  123. target-dir="src/de/appplant/cordova/plugin/notification" />
  124. <source-file
  125. src="src/android/notification/Builder.java"
  126. target-dir="src/de/appplant/cordova/plugin/notification" />
  127. <source-file
  128. src="src/android/notification/ClearReceiver.java"
  129. target-dir="src/de/appplant/cordova/plugin/notification" />
  130. <source-file
  131. src="src/android/notification/ClickActivity.java"
  132. target-dir="src/de/appplant/cordova/plugin/notification" />
  133. <source-file
  134. src="src/android/notification/Manager.java"
  135. target-dir="src/de/appplant/cordova/plugin/notification" />
  136. <source-file
  137. src="src/android/notification/Notification.java"
  138. target-dir="src/de/appplant/cordova/plugin/notification" />
  139. <source-file
  140. src="src/android/notification/Options.java"
  141. target-dir="src/de/appplant/cordova/plugin/notification" />
  142. <source-file
  143. src="src/android/notification/TriggerReceiver.java"
  144. target-dir="src/de/appplant/cordova/plugin/notification" />
  145. </platform> -->
  146. <!-- windows -->
  147. <!-- <platform name="windows">
  148. <config-file target="config.xml" parent="/*" >
  149. <preference name="WindowsToastCapable" value="true" />
  150. </config-file>
  151. <js-module src="src/windows/LocalNotificationProxy.js" name="LocalNotification.Proxy" >
  152. <merges target="" />
  153. </js-module>
  154. <js-module src="src/windows/LocalNotificationCore.js" name="LocalNotification.Proxy.Core" >
  155. <merges target="" />
  156. </js-module>
  157. <js-module src="src/windows/LocalNotificationUtil.js" name="LocalNotification.Proxy.Util" >
  158. <merges target="" />
  159. </js-module>
  160. </platform> -->
  161. </plugin>