jpush-phonegap-plugin/plugin.xml

233 lines
11 KiB
XML
Raw Normal View History

2013-10-18 11:14:33 +08:00
<?xml version="1.0" encoding="UTF-8"?>
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
2016-07-13 16:34:40 +08:00
xmlns:android="http://schemas.android.com/apk/res/android"
id="jpush-phonegap-plugin"
2017-10-23 17:22:53 +08:00
version="3.2.10">
2013-10-18 11:14:33 +08:00
2017-03-30 10:30:27 +08:00
<name>JPush</name>
2013-10-18 11:14:33 +08:00
<description>JPush for cordova plugin</description>
<author>JPush</author>
<keywords>JPush,push</keywords>
2016-08-01 00:08:51 +08:00
<license>MIT License</license>
2013-10-18 11:14:33 +08:00
2017-01-08 18:07:06 +08:00
<preference name="APP_KEY" />
2015-08-04 17:50:24 +08:00
2013-10-18 11:14:33 +08:00
<engines>
2016-07-13 16:34:40 +08:00
<engine name="cordova" version=">=3.0" />
2013-10-18 11:14:33 +08:00
</engines>
2016-07-21 17:02:33 +08:00
<!-- dependencies -->
<dependency id="cordova-plugin-device" />
2017-03-01 16:43:00 +08:00
<dependency id="cordova-plugin-jcore" />
2016-07-21 17:02:33 +08:00
2014-01-20 18:27:31 +08:00
<js-module src="www/JPushPlugin.js" name="JPushPlugin">
2016-07-13 16:34:40 +08:00
<clobbers target="JPush" />
2014-01-20 18:27:31 +08:00
</js-module>
<platform name="ios">
2016-07-13 16:34:40 +08:00
<config-file target="config.xml" parent="/*">
<feature name="JPushPlugin">
<param name="ios-package" value="JPushPlugin" />
</feature>
</config-file>
2016-12-06 14:25:15 +08:00
<header-file src="src/ios/Plugins/JPushDefine.h" />
2016-07-13 16:34:40 +08:00
<header-file src="src/ios/Plugins/JPushPlugin.h" />
<source-file src="src/ios/Plugins/JPushPlugin.m" />
<header-file src="src/ios/Plugins/AppDelegate+JPush.h" />
<source-file src="src/ios/Plugins/AppDelegate+JPush.m" />
2016-12-06 14:25:15 +08:00
<header-file src="src/ios/lib/JPUSHService.h" />
2017-10-13 13:10:47 +08:00
<source-file src="src/ios/lib/jpush-ios-3.0.7.a" framework="true" />
2016-12-30 12:29:43 +08:00
<resource-file src="src/ios/JPushConfig.plist" />
2016-12-06 14:25:15 +08:00
2016-07-13 16:34:40 +08:00
<framework src="CFNetwork.framework" weak="true" />
<framework src="CoreFoundation.framework" weak="true" />
<framework src="CoreTelephony.framework" weak="true" />
<framework src="SystemConfiguration.framework" weak="true" />
<framework src="CoreGraphics.framework" weak="true" />
<framework src="Foundation.framework" weak="true" />
<framework src="UIKit.framework" weak="true" />
<framework src="Security.framework" weak="true" />
<framework src="libz.tbd" weak="true" />
<framework src="AdSupport.framework" weak="true" />
<framework src="UserNotifications.framework" weak="true" />
<framework src="libresolv.tbd" weak="true" />
2016-12-30 12:32:47 +08:00
<config-file target="*JPushConfig.plist" parent="Appkey">
2017-01-08 18:07:06 +08:00
<string>$APP_KEY</string>
2016-07-13 16:34:40 +08:00
</config-file>
2017-06-30 15:41:14 +08:00
<!-- <hook type="after_platform_add" src="hooks/iosEnablePush.js" />
<hook type="after_plugin_install" src="hooks/iosEnablePush.js" />
2017-06-30 15:41:14 +08:00
<hook type="before_plugin_uninstall" src="hooks/iosDisablePush.js" /> -->
2016-07-13 16:34:40 +08:00
</platform>
2016-03-15 15:09:40 +08:00
2014-01-20 18:27:31 +08:00
<platform name="android">
2013-10-18 11:14:33 +08:00
<config-file target="res/xml/config.xml" parent="/*">
<feature name="JPushPlugin">
2017-05-24 11:20:52 +08:00
<param name="android-package" value="cn.jiguang.cordova.push.JPushPlugin" />
2013-10-18 11:14:33 +08:00
</feature>
</config-file>
<config-file target="AndroidManifest.xml" parent="/manifest">
<!-- Required 一些系统要求的权限,如访问网络等-->
2017-09-26 17:48:18 +08:00
<permission android:name="$PACKAGE_NAME.permission.JPUSH_MESSAGE"
android:protectionLevel="signature" />
2016-07-13 16:34:40 +08:00
<uses-permission android:name="$PACKAGE_NAME.permission.JPUSH_MESSAGE" />
2017-09-26 17:48:18 +08:00
2016-07-13 16:34:40 +08:00
<uses-permission android:name="android.permission.RECEIVE_USER_PRESENT" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.WAKE_LOCK" />
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
2017-09-26 17:48:18 +08:00
<uses-permission android:name="android.permission.WRITE_SETTINGS" />
2016-07-13 16:34:40 +08:00
<uses-permission android:name="android.permission.VIBRATE" />
<uses-permission android:name="android.permission.MOUNT_UNMOUNT_FILESYSTEMS" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
2017-09-26 17:48:18 +08:00
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
2013-10-18 11:14:33 +08:00
</config-file>
2017-01-08 18:07:06 +08:00
2013-10-18 11:14:33 +08:00
<config-file target="AndroidManifest.xml" parent="/manifest/application">
<!-- Required SDK核心功能-->
2016-11-04 12:23:18 +08:00
<activity android:name="cn.jpush.android.ui.PushActivity"
android:theme="@android:style/Theme.Translucent.NoTitleBar"
android:configChanges="orientation|keyboardHidden">
2013-10-18 11:14:33 +08:00
<intent-filter>
2016-07-13 16:34:40 +08:00
<action android:name="cn.jpush.android.ui.PushActivity" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="$PACKAGE_NAME" />
2013-10-18 11:14:33 +08:00
</intent-filter>
</activity>
2016-04-21 14:51:22 +08:00
2016-05-13 10:49:36 +08:00
<!-- Rich push 核心功能 since 2.0.6-->
2016-11-04 12:23:18 +08:00
<activity android:name="cn.jpush.android.ui.PopWinActivity"
android:theme="@style/MyDialogStyle"
android:exported="false">
2016-05-13 10:49:36 +08:00
</activity>
2013-10-18 11:14:33 +08:00
<!-- Required SDK核心功能-->
2016-07-13 16:34:40 +08:00
<service android:name="cn.jpush.android.service.DownloadService"
android:enabled="true"
android:exported="false">
2013-10-18 11:14:33 +08:00
</service>
2016-04-21 14:51:22 +08:00
2013-10-18 11:14:33 +08:00
<!-- Required SDK 核心功能-->
2016-07-13 16:34:40 +08:00
<service android:name="cn.jpush.android.service.PushService"
android:enabled="true"
android:exported="false"
android:process=":remote">
2013-10-18 11:14:33 +08:00
<intent-filter>
2016-07-13 16:34:40 +08:00
<action android:name="cn.jpush.android.intent.REGISTER" />
<action android:name="cn.jpush.android.intent.REPORT" />
<action android:name="cn.jpush.android.intent.PushService" />
<action android:name="cn.jpush.android.intent.PUSH_TIME" />
2013-10-18 11:14:33 +08:00
</intent-filter>
</service>
2016-04-21 14:51:22 +08:00
2013-10-18 11:14:33 +08:00
<!-- Required SDK核心功能-->
2016-07-13 16:34:40 +08:00
<receiver android:name="cn.jpush.android.service.PushReceiver"
android:enabled="true"
android:exported="false">
2013-10-18 11:14:33 +08:00
<intent-filter android:priority="1000">
<!--Required 显示通知栏 -->
<action android:name="cn.jpush.android.intent.NOTIFICATION_RECEIVED_PROXY" />
2016-07-13 16:34:40 +08:00
<category android:name="$PACKAGE_NAME" />
2013-10-18 11:14:33 +08:00
</intent-filter>
<intent-filter>
2016-07-13 16:34:40 +08:00
<action android:name="android.intent.action.USER_PRESENT" />
<action android:name="android.net.conn.CONNECTIVITY_CHANGE" />
2013-10-18 11:14:33 +08:00
</intent-filter>
<!-- Optional -->
<intent-filter>
2016-07-13 16:34:40 +08:00
<action android:name="android.intent.action.PACKAGE_ADDED" />
<action android:name="android.intent.action.PACKAGE_REMOVED" />
<data android:scheme="package" />
2013-10-18 11:14:33 +08:00
</intent-filter>
</receiver>
2016-07-11 10:03:09 +08:00
<!-- since 1.8.0 option 可选项。用于同一设备中不同应用的JPush服务相互拉起的功能。 -->
<!-- 若不启用该功能可删除该组件,将不拉起其他应用也不能被其他应用拉起 -->
2017-01-08 18:07:06 +08:00
<service android:name="cn.jpush.android.service.DaemonService"
android:enabled="true"
android:exported="true">
2016-07-13 16:34:40 +08:00
<intent-filter>
2016-07-11 10:03:09 +08:00
<action android:name="cn.jpush.android.intent.DaemonService" />
2016-07-13 16:34:40 +08:00
<category android:name="$PACKAGE_NAME" />
2016-07-11 10:03:09 +08:00
</intent-filter>
</service>
2013-10-18 11:14:33 +08:00
<!-- User defined. For test only 用户自定义的广播接收器 -->
2017-05-31 17:34:53 +08:00
<receiver
android:name="cn.jiguang.cordova.push.MyReceiver"
2017-05-31 17:34:53 +08:00
android:enabled="true">
2013-10-18 11:14:33 +08:00
<intent-filter android:priority="1000">
2016-07-13 16:34:40 +08:00
<action android:name="cn.jpush.android.intent.NOTIFICATION_RECEIVED_PROXY" />
2013-10-18 11:14:33 +08:00
<!-- Required 显示通知栏 -->
2016-07-13 16:34:40 +08:00
<category android:name="$PACKAGE_NAME" />
2013-10-18 11:14:33 +08:00
</intent-filter>
<intent-filter>
2016-07-13 16:34:40 +08:00
<action android:name="cn.jpush.android.intent.REGISTRATION" />
2013-10-18 11:14:33 +08:00
<!-- Required 用户注册SDK的intent -->
2016-07-13 16:34:40 +08:00
<action android:name="cn.jpush.android.intent.UNREGISTRATION" />
<action android:name="cn.jpush.android.intent.MESSAGE_RECEIVED" />
2013-10-18 11:14:33 +08:00
<!-- Required 用户接收SDK消息的intent -->
2016-07-13 16:34:40 +08:00
<action android:name="cn.jpush.android.intent.NOTIFICATION_RECEIVED" />
2013-10-18 11:14:33 +08:00
<!-- Required 用户接收SDK通知栏信息的intent -->
2016-07-13 16:34:40 +08:00
<action android:name="cn.jpush.android.intent.NOTIFICATION_OPENED" />
2013-10-18 11:14:33 +08:00
<!-- Required 用户打开自定义通知栏的intent -->
2016-07-13 16:34:40 +08:00
<action android:name="cn.jpush.android.intent.ACTION_RICHPUSH_CALLBACK" />
2013-10-18 11:14:33 +08:00
<!-- Optional 用户接受Rich Push Javascript 回调函数的intent -->
2016-07-13 16:34:40 +08:00
<category android:name="$PACKAGE_NAME" />
2013-10-18 11:14:33 +08:00
</intent-filter>
</receiver>
2013-10-18 11:14:33 +08:00
<!-- Required SDK核心功能-->
<receiver
android:name="cn.jpush.android.service.AlarmReceiver"
android:exported="false" />
2017-09-26 17:48:18 +08:00
<!-- since 3.0.9 Required SDK 核心功能-->
<provider
android:authorities="$PACKAGE_NAME.DataProvider"
android:name="cn.jpush.android.service.DataProvider"
android:exported="true" />
2017-09-28 10:22:40 +08:00
<receiver android:name="cn.jiguang.cordova.push.JPushEventReceiver">
<intent-filter>
<action android:name="cn.jpush.android.intent.RECEIVE_MESSAGE" />
<category android:name="$PACKAGE_NAME"></category>
</intent-filter>
</receiver>
<!-- Required. Enable it you can get statistics data with channel -->
2016-07-13 16:34:40 +08:00
<meta-data android:name="JPUSH_CHANNEL" android:value="developer-default" />
2017-01-08 18:07:06 +08:00
<meta-data android:name="JPUSH_APPKEY" android:value="$APP_KEY" />
2013-10-18 11:14:33 +08:00
</config-file>
2016-05-13 10:49:36 +08:00
2017-09-26 17:48:18 +08:00
<source-file src="src/android/libs/jpush-android-3.0.9.jar" target-dir="libs" />
2016-07-13 16:34:40 +08:00
2017-05-24 14:43:22 +08:00
<source-file src="src/android/MyReceiver.java" target-dir="src/cn/jiguang/cordova/push" />
<source-file src="src/android/JPushPlugin.java" target-dir="src/cn/jiguang/cordova/push" />
2017-09-19 17:48:22 +08:00
<source-file src="src/android/JPushEventReceiver.java" target-dir="src/cn/jiguang/cordova/push" />
2017-05-24 14:43:22 +08:00
<source-file src="src/android/res/drawable-hdpi/jpush_richpush_btn_selector.xml"
target-dir="res/drawable" />
<source-file src="src/android/res/drawable-hdpi/jpush_richpush_progressbar.xml"
target-dir="res/drawable" />
<source-file src="src/android/res/drawable-hdpi/jpush_ic_richpush_actionbar_back.png"
target-dir="res/drawable-hdpi" />
<source-file src="src/android/res/drawable-hdpi/jpush_ic_richpush_actionbar_divider.png"
target-dir="res/drawable-hdpi" />
2016-11-04 12:23:18 +08:00
<source-file src="src/android/res/layout/jpush_popwin_layout.xml" target-dir="res/layout" />
<source-file src="src/android/res/layout/jpush_webview_layout.xml" target-dir="res/layout" />
<source-file src="src/android/res/layout/test_notification_layout.xml" target-dir="res/layout" />
<source-file src="src/android/res/values/jpush_style.xml" target-dir="res/values" />
2013-10-18 11:14:33 +08:00
</platform>
2015-08-04 17:50:24 +08:00
</plugin>