jpush-phonegap-plugin/plugin.xml

327 lines
16 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"
2024-09-29 11:45:40 +08:00
version="5.5.0">
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" />
2018-12-18 21:07:18 +08:00
<preference name="CHANNEL" default="developer-default" />
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>
2018-06-04 17:02:38 +08:00
<config-file target="*-Info.plist" parent="UIBackgroundModes">
<array>
<string>remote-notification</string>
</array>
</config-file>
<config-file target="*-Debug.plist" parent="aps-environment">
<string>development</string>
</config-file>
<config-file target="*-Release.plist" parent="aps-environment">
<string>production</string>
</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
2024-09-30 15:54:37 +08:00
<source-file src="src/ios/lib/jpush-ios-5.4.0.xcframework" 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" />
2021-06-01 17:24:43 +08:00
<framework src="StoreKit.framework" 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>
</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" />
2019-07-29 13:52:32 +08:00
<!-- Required 一些系统要求的权限,如访问网络等-->
2016-07-13 16:34:40 +08:00
<uses-permission android:name="$PACKAGE_NAME.permission.JPUSH_MESSAGE" />
<uses-permission android:name="android.permission.INTERNET" />
<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" />
<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" />
2022-12-23 16:44:25 +08:00
<uses-permission android:name="android.permission.POST_NOTIFICATIONS"/>
2019-07-29 13:52:32 +08:00
<!-- Optional for location -->
2018-11-13 16:27:09 +08:00
<uses-permission android:name="android.permission.VIBRATE" />
2019-07-29 13:52:32 +08:00
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.CHANGE_WIFI_STATE" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_BACKGROUND_LOCATION" /><!-- Android Q后台定位权限-->
<uses-permission android:name="android.permission.CHANGE_NETWORK_STATE" />
<uses-permission android:name="android.permission.GET_TASKS" />
2021-06-01 17:24:43 +08:00
<uses-permission android:name="android.permission.QUERY_ALL_PACKAGES"/>
2020-04-10 15:15:09 +08:00
<!--华为角标-->
2021-06-01 17:30:37 +08:00
<uses-permission android:name="com.huawei.android.launcher.permission.CHANGE_BADGE"/>
2022-08-11 10:33:40 +08:00
<!-- vivo 角标 -->
<uses-permission android:name="com.vivo.notification.permission.BADGE_ICON" />
2022-12-23 16:44:25 +08:00
<!--honor 角标-->
<uses-permission android:name="com.hihonor.android.launcher.permission.CHANGE_BADGE" />
2013-10-18 11:14:33 +08:00
</config-file>
2017-01-08 18:07:06 +08:00
<config-file target="AndroidManifest.xml" parent="/manifest/application">
2016-05-13 10:49:36 +08:00
2016-04-21 14:51:22 +08:00
2019-07-29 13:52:32 +08:00
<!-- Rich push 核心功能 since 2.0.6-->
<activity
2022-08-11 10:33:40 +08:00
android:name="cn.jpush.android.ui.PopWinActivity"
android:exported="true"
2024-07-11 10:38:51 +08:00
android:theme="@style/JPushDialogStyle" >
2022-08-11 10:33:40 +08:00
<intent-filter>
<category android:name="android.intent.category.DEFAULT" />
<action android:name="cn.jpush.android.ui.PopWinActivity" />
<category android:name="$PACKAGE_NAME" />
</intent-filter>
2019-07-29 13:52:32 +08:00
</activity>
<!-- Required SDK核心功能-->
<activity
android:name="cn.jpush.android.ui.PushActivity"
android:configChanges="orientation|keyboardHidden"
android:theme="@android:style/Theme.NoTitleBar"
2022-12-23 16:44:25 +08:00
android:exported="true">
2019-07-29 13:52:32 +08:00
<intent-filter>
<action android:name="cn.jpush.android.ui.PushActivity" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="$PACKAGE_NAME" />
</intent-filter>
</activity>
2016-04-21 14:51:22 +08:00
2018-11-13 16:27:09 +08:00
<!-- since 3.0.9 Required SDK 核心功能-->
<provider
2019-07-29 14:50:19 +08:00
android:authorities="$PACKAGE_NAME.DataProvider"
2019-07-29 13:52:32 +08:00
android:name="cn.jpush.android.service.DataProvider"
android:process=":pushcore"
android:exported="false"
/>
2018-11-13 16:27:09 +08:00
2013-10-18 11:14:33 +08:00
<!-- Required SDK核心功能-->
2019-07-29 13:52:32 +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">
2019-07-29 13:52:32 +08:00
<action android:name="cn.jpush.android.intent.NOTIFICATION_RECEIVED_PROXY" /> <!--Required 显示通知栏 -->
2016-07-13 16:34:40 +08:00
<category android:name="$PACKAGE_NAME" />
2013-10-18 11:14:33 +08:00
</intent-filter>
2022-08-11 10:33:40 +08:00
2013-10-18 11:14:33 +08:00
</receiver>
2020-04-10 15:15:09 +08:00
<!-- 3.5.0新增,用于定时展示功能 -->
<receiver android:name="cn.jpush.android.service.SchedulerReceiver" android:exported="false"/>
2019-07-29 13:52:32 +08:00
<!--since 3.3.0 接收JPush相关事件-->
2024-07-11 10:38:51 +08:00
<receiver android:name="cn.jiguang.cordova.push.JPushEventReceiver"
2021-06-01 17:24:43 +08:00
android:exported="false">
2016-07-13 16:34:40 +08:00
<intent-filter>
2024-07-11 10:38:51 +08:00
<action android:name="cn.jpush.android.intent.RECEIVER_MESSAGE" />
2019-07-29 13:52:32 +08:00
<category android:name="$PACKAGE_NAME"></category>
2016-07-11 10:03:09 +08:00
</intent-filter>
2024-07-11 10:38:51 +08:00
</receiver>
2018-11-13 16:27:09 +08:00
2019-07-29 13:52:32 +08:00
<!--since 3.3.0 Required SDK核心功能-->
2022-08-11 10:33:40 +08:00
<!-- since 3.3.0 Required SDK核心功能 -->
<activity
android:name="cn.jpush.android.service.JNotifyActivity"
android:exported="true"
2022-12-23 16:44:25 +08:00
android:taskAffinity=""
2022-08-11 10:33:40 +08:00
android:theme="@style/JPushTheme" >
<intent-filter>
<action android:name="cn.jpush.android.intent.JNotifyActivity" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="$PACKAGE_NAME" />
</intent-filter>
</activity>
<!-- since 4.6.0 Required SDK核心功能 -->
<activity
android:name="cn.android.service.JTransitActivity"
android:exported="true"
2022-12-23 16:44:25 +08:00
android:taskAffinity=""
2022-08-11 10:33:40 +08:00
android:theme="@style/JPushTheme" >
<intent-filter>
<action android:name="cn.android.service.JTransitActivity" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="$PACKAGE_NAME" />
</intent-filter>
</activity>
2018-11-13 16:27:09 +08:00
2019-07-29 13:52:32 +08:00
<!-- since 3.3.0 Required SDK 核心功能-->
<!-- 可配置android:process参数将PushService放在其他进程中 -->
<!--User defined. For test only 继承自cn.jpush.android.service.JCommonService-->
<service android:name="cn.jiguang.cordova.push.PushService"
2021-06-01 17:24:43 +08:00
android:process=":pushcore"
android:exported="false">
2018-11-13 16:27:09 +08:00
<intent-filter>
2019-07-29 13:52:32 +08:00
<action android:name="cn.jiguang.user.service.action" />
2018-11-13 16:27:09 +08:00
</intent-filter>
2019-07-29 13:52:32 +08:00
</service>
2018-11-13 16:27:09 +08:00
2017-05-31 17:34:53 +08:00
<receiver
2019-07-29 13:52:32 +08:00
android:name="cn.jiguang.cordova.push.JPushReceiver"
android:enabled="true"
android:exported="false">
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.REGISTRATION" />
<action android:name="cn.jpush.android.intent.MESSAGE_RECEIVED" />
<action android:name="cn.jpush.android.intent.NOTIFICATION_RECEIVED" />
<action android:name="cn.jpush.android.intent.NOTIFICATION_OPENED" />
<action android:name="cn.jpush.android.intent.CONNECTION" />
2019-07-29 13:52:32 +08:00
2019-07-29 18:22:44 +08:00
<category android:name="$PACKAGE_NAME" />
2013-10-18 11:14:33 +08:00
</intent-filter>
</receiver>
2019-07-29 13:52:32 +08:00
<!-- Required . Enable it you can get statistics data with channel -->
<meta-data android:name="JPUSH_CHANNEL" android:value="$CHANNEL"/>
<meta-data android:name="JPUSH_APPKEY" android:value="$APP_KEY" /> <!-- </>值来自开发者平台取得的AppKey-->
<provider
2024-07-11 10:38:51 +08:00
android:name="cn.jpush.android.service.InitProvider"
android:authorities="${applicationId}.jiguang.InitProvider"
2024-07-11 10:38:51 +08:00
android:exported="false"
android:readPermission="${applicationId}.permission.JPUSH_MESSAGE"
android:writePermission="${applicationId}.permission.JPUSH_MESSAGE" />
2013-10-18 11:14:33 +08:00
</config-file>
2016-05-13 10:49:36 +08:00
2024-09-29 11:45:40 +08:00
<lib-file src="src/android/libs/jpush-android-5.5.0.jar" />
2016-07-13 16:34:40 +08:00
2019-07-29 13:52:32 +08:00
<source-file src="src/android/PushService.java" target-dir="src/cn/jiguang/cordova/push" />
2018-11-13 16:27:09 +08:00
<source-file src="src/android/JPushPlugin.java" target-dir="src/cn/jiguang/cordova/push" />
2019-07-29 13:52:32 +08:00
<source-file src="src/android/JPushReceiver.java" target-dir="src/cn/jiguang/cordova/push" />
2018-11-13 16:27:09 +08:00
<source-file src="src/android/JPushEventReceiver.java" target-dir="src/cn/jiguang/cordova/push" />
2021-07-28 11:17:08 +08:00
<source-file src="src/android/JLogger.java" target-dir="src/cn/jiguang/cordova/push" />
2017-05-24 14:43:22 +08:00
<resource-file src="src/android/res/drawable-hdpi/jpush_btn_blue_bg.xml"
target="res/drawable/jpush_btn_blue_bg.xml" />
<resource-file src="src/android/res/drawable-hdpi/jpush_btn_grey_bg.xml"
target="res/drawable/jpush_btn_grey_bg.xml" />
<resource-file src="src/android/res/drawable-hdpi/jpush_cancel_btn_bg.xml"
target="res/drawable/jpush_cancel_btn_bg.xml" />
<resource-file src="src/android/res/drawable-hdpi/jpush_close.xml"
target="res/drawable/jpush_close.xml" />
<resource-file src="src/android/res/drawable-hdpi/jpush_contain_bg.xml"
target="res/drawable/jpush_contain_bg.xml" />
<resource-file src="src/android/res/drawable-hdpi/jpush_interstitial_bg.xml"
target="res/drawable/jpush_interstitial_bg.xml" />
<resource-file src="src/android/res/drawable-hdpi/jpush_richpush_btn_selector.xml"
target="res/drawable/jpush_richpush_btn_selector.xml" />
<resource-file src="src/android/res/drawable-hdpi/jpush_richpush_progressbar.xml"
target="res/drawable/jpush_richpush_progressbar.xml" />
<resource-file src="src/android/res/drawable-hdpi/jpush_ic_richpush_actionbar_back.png"
target="res/drawable-hdpi/jpush_ic_richpush_actionbar_back.png" />
<resource-file src="src/android/res/drawable-hdpi/jpush_ic_richpush_actionbar_divider.png"
target="res/drawable-hdpi/jpush_ic_richpush_actionbar_divider.png" />
2021-06-01 17:24:43 +08:00
<resource-file src="src/android/res/drawable-hdpi/jpush_ic_action_cancle.png"
target="res/drawable-hdpi/jpush_ic_action_cancle.png" />
<resource-file src="src/android/res/drawable-hdpi/jpush_ic_action_close.png"
target="res/drawable-hdpi/jpush_ic_action_close.png" />
<resource-file src="src/android/res/drawable-hdpi/jpush_ic_action_close2.png"
target="res/drawable-hdpi/jpush_ic_action_close2.png" />
2022-08-11 10:33:40 +08:00
<resource-file src="src/android/res/drawable-hdpi/jpush_btn_bg_green_playable.xml"
target="res/drawable-hdpi/jpush_btn_bg_green_playable.xml" />
2016-11-04 12:23:18 +08:00
2019-07-29 13:52:32 +08:00
<resource-file src="src/android/res/layout/jpush_popwin_layout.xml"
target="res/layout/jpush_popwin_layout.xml" />
2019-07-29 13:52:32 +08:00
<resource-file src="src/android/res/layout/jpush_webview_layout.xml"
target="res/layout/jpush_webview_layout.xml" />
2019-07-29 13:52:32 +08:00
<resource-file src="src/android/res/layout/push_notification.xml"
target="res/layout/push_notification.xml" />
2021-06-01 17:24:43 +08:00
<resource-file src="src/android/res/layout/push_notification_large.xml"
target="res/layout/push_notification_large.xml" />
<resource-file src="src/android/res/layout/push_notification_middle.xml"
target="res/layout/push_notification_middle.xml" />
<resource-file src="src/android/res/layout/jpush_inapp_banner.xml"
target="res/layout/jpush_inapp_banner.xml" />
2022-08-11 10:33:40 +08:00
<resource-file src="src/android/res/layout/push_download_notification_layout.xml"
target="res/layout/push_download_notification_layout.xml" />
2021-06-01 17:24:43 +08:00
<resource-file src="src/android/res/layout/jpush_interstitial.xml"
target="res/layout/jpush_interstitial.xml" />
<resource-file src="src/android/res/layout/jpush_full.xml"
target="res/layout/jpush_full.xml" />
<resource-file src="src/android/res/layout/jpush_banner.xml"
target="res/layout/jpush_banner.xml" />
<resource-file src="src/android/res/layout-v21/push_notification.xml"
target="res/layout-v21/push_notification.xml" />
2021-06-01 17:24:43 +08:00
<resource-file src="src/android/res/layout-v21/push_notification_middle.xml"
target="res/layout-v21/push_notification_middle.xml" />
<resource-file src="src/android/res/layout-v21/push_notification_large.xml"
target="res/layout-v21/push_notification_large.xml" />
2016-11-04 12:23:18 +08:00
<resource-file src="src/android/res/values/jpush_style.xml"
2019-07-29 13:52:32 +08:00
target="res/values/jpush_style.xml" />
<resource-file src="src/android/res/values/jpush_string.xml"
target="res/values/jpush_string.xml" />
<resource-file src="src/android/res/values-zh/jpush_string.xml"
target="res/values-zh/jpush_string.xml" />
2022-08-11 10:33:40 +08:00
<resource-file src="src/android/res/xml/jpush_file_paths.xml"
target="res/xml/jpush_file_paths.xml" />
2013-10-18 11:14:33 +08:00
</platform>
2015-08-04 17:50:24 +08:00
</plugin>