plugin.xml 9.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. * Apache 2.0 License
  4. *
  5. * Copyright (c) Sebastian Katzer 2017
  6. *
  7. * This file contains Original Code and/or Modifications of Original Code
  8. * as defined in and that are subject to the Apache License
  9. * Version 2.0 (the 'License'). You may not use this file except in
  10. * compliance with the License. Please obtain a copy of the License at
  11. * http://opensource.org/licenses/Apache-2.0/ and read it before using this
  12. * file.
  13. *
  14. * The Original Code and all software distributed under the License are
  15. * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  16. * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  17. * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  18. * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  19. * Please see the License for the specific language governing rights and
  20. * limitations under the License.
  21. -->
  22. <plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
  23. xmlns:android="http://schemas.android.com/apk/res/android"
  24. id="cordova-plugin-local-notifications"
  25. version="0.0.0">
  26. <name>LocalNotification</name>
  27. <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>
  28. <repo>https://github.com/katzer/cordova-plugin-local-notifications.git</repo>
  29. <keywords>appplant, notification, local notification, user notification</keywords>
  30. <license>Apache 2.0</license>
  31. <author>Sebastián Katzer</author>
  32. <!-- cordova -->
  33. <engines>
  34. <engine name="cordova" version=">=3.6.0" />
  35. <engine name="cordova-plugman" version=">=4.3.0" />
  36. <engine name="cordova-windows" version=">=4.2.0" />
  37. <engine name="apple-ios" version=">=10.0.0" />
  38. </engines>
  39. <!-- dependencies -->
  40. <dependency id="cordova-plugin-device" />
  41. <!-- js -->
  42. <js-module src="www/local-notification.js" name="LocalNotification">
  43. <clobbers target="cordova.plugins.notification.local" />
  44. </js-module>
  45. <js-module src="www/local-notification-core.js" name="LocalNotification.Core">
  46. <clobbers target="cordova.plugins.notification.local.core" />
  47. <clobbers target="plugin.notification.local.core" />
  48. </js-module>
  49. <js-module src="www/local-notification-util.js" name="LocalNotification.Util">
  50. <merges target="cordova.plugins.notification.local.core" />
  51. <merges target="plugin.notification.local.core" />
  52. </js-module>
  53. <!-- ios -->
  54. <platform name="ios">
  55. <config-file target="config.xml" parent="/*">
  56. <feature name="LocalNotification">
  57. <param name="ios-package" value="APPLocalNotification" onload="true" />
  58. <param name="onload" value="true" />
  59. </feature>
  60. </config-file>
  61. <framework src="UserNotifications.framework" />
  62. <framework src="CoreLocation.framework" />
  63. <header-file src="src/ios/APPLocalNotification.h" />
  64. <source-file src="src/ios/APPLocalNotification.m" />
  65. <header-file src="src/ios/APPNotificationContent.h" />
  66. <source-file src="src/ios/APPNotificationContent.m" />
  67. <header-file src="src/ios/APPNotificationOptions.h" />
  68. <source-file src="src/ios/APPNotificationOptions.m" />
  69. <header-file src="src/ios/UNUserNotificationCenter+APPLocalNotification.h" />
  70. <source-file src="src/ios/UNUserNotificationCenter+APPLocalNotification.m" />
  71. <header-file src="src/ios/UNNotificationRequest+APPLocalNotification.h" />
  72. <source-file src="src/ios/UNNotificationRequest+APPLocalNotification.m" />
  73. </platform>
  74. <!-- android -->
  75. <!-- <platform name="android">
  76. <framework src="com.android.support:support-v4:+" value="gradle" />
  77. <config-file target="res/xml/config.xml" parent="/*">
  78. <feature name="LocalNotification">
  79. <param name="android-package" value="de.appplant.cordova.plugin.localnotification.LocalNotification"/>
  80. </feature>
  81. </config-file>
  82. <config-file target="AndroidManifest.xml" parent="/manifest/application">
  83. <receiver
  84. android:name="de.appplant.cordova.plugin.localnotification.TriggerReceiver"
  85. android:exported="false" />
  86. <receiver
  87. android:name="de.appplant.cordova.plugin.localnotification.ClearReceiver"
  88. android:exported="false" />
  89. <activity
  90. android:name="de.appplant.cordova.plugin.localnotification.ClickActivity"
  91. android:launchMode="singleInstance"
  92. android:theme="@android:style/Theme.NoDisplay"
  93. android:exported="false" />
  94. <receiver
  95. android:name="de.appplant.cordova.plugin.notification.TriggerReceiver"
  96. android:exported="false" />
  97. <receiver
  98. android:name="de.appplant.cordova.plugin.notification.ClearReceiver"
  99. android:exported="false" />
  100. <receiver android:name="de.appplant.cordova.plugin.localnotification.RestoreReceiver" android:exported="false" >
  101. <intent-filter>
  102. <action android:name="android.intent.action.BOOT_COMPLETED" />
  103. </intent-filter>
  104. </receiver>
  105. <activity
  106. android:name="de.appplant.cordova.plugin.notification.ClickActivity"
  107. android:launchMode="singleInstance"
  108. android:theme="@android:style/Theme.NoDisplay"
  109. android:exported="false" />
  110. </config-file>
  111. <config-file target="AndroidManifest.xml" parent="/manifest">
  112. <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
  113. <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
  114. </config-file>
  115. <source-file
  116. src="src/android/LocalNotification.java"
  117. target-dir="src/de/appplant/cordova/plugin/localnotification" />
  118. <source-file
  119. src="src/android/TriggerReceiver.java"
  120. target-dir="src/de/appplant/cordova/plugin/localnotification" />
  121. <source-file
  122. src="src/android/ClickActivity.java"
  123. target-dir="src/de/appplant/cordova/plugin/localnotification" />
  124. <source-file
  125. src="src/android/ClearReceiver.java"
  126. target-dir="src/de/appplant/cordova/plugin/localnotification" />
  127. <source-file
  128. src="src/android/RestoreReceiver.java"
  129. target-dir="src/de/appplant/cordova/plugin/localnotification" />
  130. <source-file
  131. src="src/android/notification/AbstractClearReceiver.java"
  132. target-dir="src/de/appplant/cordova/plugin/notification" />
  133. <source-file
  134. src="src/android/notification/AbstractClickActivity.java"
  135. target-dir="src/de/appplant/cordova/plugin/notification" />
  136. <source-file
  137. src="src/android/notification/AbstractRestoreReceiver.java"
  138. target-dir="src/de/appplant/cordova/plugin/notification" />
  139. <source-file
  140. src="src/android/notification/AbstractTriggerReceiver.java"
  141. target-dir="src/de/appplant/cordova/plugin/notification" />
  142. <source-file
  143. src="src/android/notification/AssetUtil.java"
  144. target-dir="src/de/appplant/cordova/plugin/notification" />
  145. <source-file
  146. src="src/android/notification/Builder.java"
  147. target-dir="src/de/appplant/cordova/plugin/notification" />
  148. <source-file
  149. src="src/android/notification/ClearReceiver.java"
  150. target-dir="src/de/appplant/cordova/plugin/notification" />
  151. <source-file
  152. src="src/android/notification/ClickActivity.java"
  153. target-dir="src/de/appplant/cordova/plugin/notification" />
  154. <source-file
  155. src="src/android/notification/Manager.java"
  156. target-dir="src/de/appplant/cordova/plugin/notification" />
  157. <source-file
  158. src="src/android/notification/Notification.java"
  159. target-dir="src/de/appplant/cordova/plugin/notification" />
  160. <source-file
  161. src="src/android/notification/Options.java"
  162. target-dir="src/de/appplant/cordova/plugin/notification" />
  163. <source-file
  164. src="src/android/notification/TriggerReceiver.java"
  165. target-dir="src/de/appplant/cordova/plugin/notification" />
  166. </platform> -->
  167. <!-- windows -->
  168. <platform name="windows">
  169. <config-file target="config.xml" parent="/*" >
  170. <preference name="WindowsToastCapable" value="true" />
  171. </config-file>
  172. <framework src="src/windows/lib.UW/ARM/LocalNotificationProxy.winmd" target-dir="x86" arch="x86" custom="true"/>
  173. <framework src="src/windows/lib.UW/ARM/LocalNotificationProxy.winmd" target-dir="x64" arch="x64" custom="true"/>
  174. <framework src="src/windows/lib.UW/ARM/LocalNotificationProxy.winmd" target-dir="ARM" arch="ARM" custom="true"/>
  175. <js-module src="src/windows/LocalNotificationProxy.js" name="LocalNotification.Proxy" >
  176. <merges target="" />
  177. </js-module>
  178. </platform>
  179. </plugin>