|
@@ -1,6 +1,6 @@
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
- package="com.quansu.jpush" >
|
|
|
+ package="com.quansu.jpush">
|
|
|
|
|
|
<uses-permission android:name="com.example.jpushdemo.permission.JPUSH_MESSAGE" />
|
|
|
<uses-permission android:name="android.permission.RECEIVE_USER_PRESENT" />
|
|
@@ -23,31 +23,43 @@
|
|
|
<!-- 这里com.xiaomi.mipushdemo改成app的包名 -->
|
|
|
<uses-permission android:name="${applicationId}.permission.JPUSH_MESSAGE" />
|
|
|
|
|
|
- <application
|
|
|
+ <application
|
|
|
android:allowBackup="true"
|
|
|
android:label="@string/app_name"
|
|
|
- android:supportsRtl="true" >
|
|
|
+ android:supportsRtl="true">
|
|
|
<!-- 极光-->
|
|
|
<!-- 替换原生极光推送接收器 -->
|
|
|
|
|
|
- <receiver android:name=".PushMessageReceiver" >
|
|
|
- <intent-filter >
|
|
|
+ <receiver android:name=".PushMessageReceiver">
|
|
|
+ <intent-filter>
|
|
|
<action android:name="cn.jpush.android.intent.RECEIVE_MESSAGE" />
|
|
|
- <category android:name="${applicationId}" ></category >
|
|
|
- </intent-filter >
|
|
|
- </receiver >
|
|
|
+ <category android:name="${applicationId}"></category>
|
|
|
+ </intent-filter>
|
|
|
+ </receiver>
|
|
|
|
|
|
<!-- since 3.3.0 Required SDK 核心功能-->
|
|
|
<!-- 可配置android:process参数将PushService放在其他进程中 -->
|
|
|
<!--User defined. For test only 继承自cn.jpush.android.service.JCommonService-->
|
|
|
<service
|
|
|
android:name=".PushService"
|
|
|
- android:process=":pushcore" >
|
|
|
- <intent-filter >
|
|
|
+ android:process=":pushcore">
|
|
|
+ <intent-filter>
|
|
|
<action android:name="cn.jiguang.user.service.action" />
|
|
|
- </intent-filter >
|
|
|
- </service >
|
|
|
+ </intent-filter>
|
|
|
+ </service>
|
|
|
|
|
|
- </application >
|
|
|
+ <!-- <!– 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="${applicationId}" />-->
|
|
|
+<!-- </intent-filter>-->
|
|
|
+<!-- </service>-->
|
|
|
|
|
|
-</manifest >
|
|
|
+ </application>
|
|
|
+
|
|
|
+</manifest>
|