123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232 |
- <?xml version="1.0" encoding="UTF-8"?>
- <plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
- xmlns:android="http://schemas.android.com/apk/res/android"
- id="jpush-phonegap-plugin"
- version="3.4.3">
- <name>JPush</name>
- <description>JPush for cordova plugin</description>
- <author>JPush</author>
- <keywords>JPush,push</keywords>
- <license>MIT License</license>
- <preference name="APP_KEY" />
- <engines>
- <engine name="cordova" version=">=3.0" />
- </engines>
- <!-- dependencies -->
- <dependency id="cordova-plugin-device" />
- <dependency id="cordova-plugin-jcore" />
- <js-module src="www/JPushPlugin.js" name="JPushPlugin">
- <clobbers target="JPush" />
- </js-module>
- <platform name="ios">
- <config-file target="config.xml" parent="/*">
- <feature name="JPushPlugin">
- <param name="ios-package" value="JPushPlugin" />
- </feature>
- </config-file>
- <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>
- <header-file src="src/ios/Plugins/JPushDefine.h" />
- <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" />
- <header-file src="src/ios/lib/JPUSHService.h" />
- <source-file src="src/ios/lib/jpush-ios-3.1.0.a" framework="true" />
- <resource-file src="src/ios/JPushConfig.plist" />
- <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" />
- <config-file target="*JPushConfig.plist" parent="Appkey">
- <string>$APP_KEY</string>
- </config-file>
- </platform>
- <platform name="android">
- <config-file target="res/xml/config.xml" parent="/*">
- <feature name="JPushPlugin">
- <param name="android-package" value="cn.jiguang.cordova.push.JPushPlugin" />
- </feature>
- </config-file>
- <config-file target="AndroidManifest.xml" parent="/manifest" mode="merge">
- <!-- Required 一些系统要求的权限,如访问网络等 -->
- <permission android:name="$PACKAGE_NAME.permission.JPUSH_MESSAGE"
- android:protectionLevel="signature" />
- <uses-permission android:name="$PACKAGE_NAME.permission.JPUSH_MESSAGE" />
- <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" />
- <uses-permission android:name="android.permission.WRITE_SETTINGS" />
- <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" />
- <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
- </config-file>
- <config-file target="AndroidManifest.xml" parent="/manifest/application" mode="merge">
- <!-- Required SDK核心功能 -->
- <activity android:name="cn.jpush.android.ui.PushActivity"
- android:theme="@android:style/Theme.Translucent.NoTitleBar"
- android:configChanges="orientation|keyboardHidden">
- <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>
- <!-- Rich push 核心功能 since 2.0.6 -->
- <activity android:name="cn.jpush.android.ui.PopWinActivity"
- android:theme="@style/MyDialogStyle"
- android:exported="false">
- </activity>
- <!-- Required SDK 核心功能 -->
- <service android:name="cn.jpush.android.service.DownloadService"
- android:enabled="true"
- android:exported="false">
- </service>
- <!-- Required SDK 核心功能-->
- <service android:name="cn.jpush.android.service.PushService"
- android:enabled="true"
- android:exported="false"
- android:process=":remote">
- <intent-filter>
- <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" />
- </intent-filter>
- </service>
- <!-- Required SDK核心功能-->
- <receiver android:name="cn.jpush.android.service.PushReceiver"
- android:enabled="true"
- android:exported="false">
- <intent-filter android:priority="1000">
- <!--Required 显示通知栏 -->
- <action android:name="cn.jpush.android.intent.NOTIFICATION_RECEIVED_PROXY" />
- <category android:name="$PACKAGE_NAME" />
- </intent-filter>
- <intent-filter>
- <action android:name="android.intent.action.USER_PRESENT" />
- <action android:name="android.net.conn.CONNECTIVITY_CHANGE" />
- </intent-filter>
- <!-- Optional -->
- <intent-filter>
- <action android:name="android.intent.action.PACKAGE_ADDED" />
- <action android:name="android.intent.action.PACKAGE_REMOVED" />
- <data android:scheme="package" />
- </intent-filter>
- </receiver>
- <!-- since 1.8.0 option 可选项。用于同一设备中不同应用的 JPush 服务相互拉起的功能。 -->
- <!-- 若不启用该功能可删除该组件,将不拉起其他应用也不能被其他应用拉起 -->
- <service android:name="cn.jpush.android.service.DaemonService"
- android:enabled="true"
- android:exported="true">
- <intent-filter>
- <action android:name="cn.jpush.android.intent.DaemonService" />
- <category android:name="$PACKAGE_NAME" />
- </intent-filter>
- </service>
- <!-- 通知广播接收器 -->
- <receiver
- android:name="cn.jiguang.cordova.push.JPushReceiver"
- android:enabled="true">
- <intent-filter>
- <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" />
- <category android:name="$PACKAGE_NAME" />
- </intent-filter>
- </receiver>
- <!-- Required SDK核心功能-->
- <receiver
- android:name="cn.jpush.android.service.AlarmReceiver"
- android:exported="false" />
- <!-- since 3.0.9 Required SDK 核心功能-->
- <provider
- android:authorities="$PACKAGE_NAME.DataProvider"
- android:name="cn.jpush.android.service.DataProvider"
- android:exported="true" />
- <receiver android:name="cn.jiguang.cordova.push.JPushEventReceiver">
- <intent-filter>
- <action android:name="cn.jpush.android.intent.RECEIVE_MESSAGE" />
- <category android:name="$PACKAGE_NAME" />
- </intent-filter>
- </receiver>
- <!-- Required. Enable it you can get statistics data with channel -->
- <meta-data android:name="JPUSH_CHANNEL" android:value="developer-default" />
- <meta-data android:name="JPUSH_APPKEY" android:value="$APP_KEY" />
- </config-file>
- <lib-file src="src/android/libs/jpush-android-3.1.5.jar" />
- <source-file src="src/android/JPushReceiver.java" target-dir="app/src/main/java/cn/jiguang/cordova/push" />
- <source-file src="src/android/JPushPlugin.java" target-dir="app/src/main/java/cn/jiguang/cordova/push" />
- <source-file src="src/android/JPushEventReceiver.java" target-dir="app/src/main/java/cn/jiguang/cordova/push" />
- <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" />
- <resource-file src="src/android/res/layout/jpush_popwin_layout.xml"
- target="res/layout/jpush_popwin_layout.xml" />
- <resource-file src="src/android/res/layout/jpush_webview_layout.xml"
- target="res/layout/jpush_webview_layout.xml" />
- <resource-file src="src/android/res/layout/test_notification_layout.xml"
- target="res/layout/test_notification_layout.xml" />
- <resource-file src="src/android/res/values/jpush_style.xml"
- target="res/values/jpush_style.xml" />
- </platform>
- </plugin>
|