version:zhanrui 6.4.0

fix:
update:更换推送
This commit is contained in:
2023-06-17 09:30:06 +08:00
parent c508b65b58
commit 625a121cbb
34 changed files with 676 additions and 1703 deletions

View File

@@ -48,6 +48,7 @@
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
<uses-permission android:name="android.permission.WRITE_SETTINGS" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.READ_PRIVILEGED_PHONE_STATE" />
<!-- 【必须】 移动推送 TPNS SDK VIP版本所需权限 -->
<permission
@@ -233,161 +234,6 @@
android:readPermission="android.permission.WRITE_SECURE_SETTINGS"
android:writePermission="android.permission.WRITE_SECURE_SETTINGS" />
<!-- Rich push 核心功能 since 2.0.6-->
<!-- <activity-->
<!-- android:name="cn.jpush.android.ui.PopWinActivity"-->
<!-- android:exported="false"-->
<!-- android:theme="@style/MyDialogStyle"-->
<!-- tools:replace="android:exported"></activity>-->
<!-- Required SDK核心功能-->
<!-- <activity-->
<!-- android:name="cn.jpush.android.ui.PushActivity"-->
<!-- android:configChanges="orientation|keyboardHidden"-->
<!-- android:exported="false"-->
<!-- android:theme="@android:style/Theme.NoTitleBar"-->
<!-- tools:replace="android:exported">-->
<!-- <intent-filter>-->
<!-- <action android:name="cn.jpush.android.ui.PushActivity" />-->
<!-- <category android:name="android.intent.category.DEFAULT" />-->
<!-- <category android:name="${applicationId}" />-->
<!-- </intent-filter>-->
<!-- </activity>-->
<!-- Required SDK 核心功能-->
<!-- 可配置android:process参数将PushService放在其他进程中 -->
<!-- <service-->
<!-- android:name="cn.jpush.android.service.PushService"-->
<!-- android:exported="false"-->
<!-- android:process=":pushcore">-->
<!-- <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>-->
<!-- since 3.0.9 Required SDK 核心功能-->
<!-- <provider-->
<!-- android:name="cn.jpush.android.service.DataProvider"-->
<!-- android:authorities="${applicationId}.DataProvider"-->
<!-- android:exported="false"-->
<!-- android:process=":pushcore"-->
<!-- tools:replace="android:authorities" />-->
<!-- 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>-->
<!-- since 3.1.0 Required SDK 核心功能-->
<!-- <provider-->
<!-- android:name="cn.jpush.android.service.DownloadProvider"-->
<!-- android:authorities="${applicationId}.DownloadProvider"-->
<!-- android:exported="true"-->
<!-- tools:replace="android:authorities" />-->
<!-- Required SDK核心功能-->
<!-- <receiver-->
<!-- android:name="cn.jpush.android.service.PushReceiver"-->
<!-- android:enabled="true"-->
<!-- android:exported="false"-->
<!-- tools:replace="android:exported">-->
<!-- <intent-filter android:priority="1000">-->
<!-- <action android:name="cn.jpush.android.intent.NOTIFICATION_RECEIVED_PROXY" /> &lt;!&ndash;Required 显示通知栏 &ndash;&gt;-->
<!-- <category android:name="${applicationId}" />-->
<!-- </intent-filter>-->
<!-- <intent-filter>-->
<!-- <action android:name="android.intent.action.USER_PRESENT" />-->
<!-- <action android:name="android.net.conn.CONNECTIVITY_CHANGE" />-->
<!-- </intent-filter>-->
<!-- &lt;!&ndash; Optional &ndash;&gt;-->
<!-- <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>-->
<!-- Required SDK核心功能-->
<!-- <receiver-->
<!-- android:name="cn.jpush.android.service.AlarmReceiver"-->
<!-- android:exported="false" />-->
<!-- &lt;!&ndash; User defined. For test only 用户自定义的广播接收器&ndash;&gt;-->
<!-- <receiver-->
<!-- android:name="com.aoleyun.os.jpush.MyReceiver"-->
<!-- android:enabled="true"-->
<!-- android:exported="false">-->
<!-- <intent-filter>-->
<!-- <action android:name="cn.jpush.android.intent.REGISTRATION" /> &lt;!&ndash;Required 用户注册SDK的intent&ndash;&gt;-->
<!-- <action android:name="cn.jpush.android.intent.MESSAGE_RECEIVED" /> &lt;!&ndash;Required 用户接收SDK消息的intent&ndash;&gt;-->
<!-- <action android:name="cn.jpush.android.intent.NOTIFICATION_RECEIVED" /> &lt;!&ndash;Required 用户接收SDK通知栏信息的intent&ndash;&gt;-->
<!-- <action android:name="cn.jpush.android.intent.NOTIFICATION_OPENED" /> &lt;!&ndash;Required 用户打开自定义通知栏的intent&ndash;&gt;-->
<!-- <action android:name="cn.jpush.android.intent.CONNECTION" />&lt;!&ndash; 接收网络变化 连接/断开 since 1.6.3 &ndash;&gt;-->
<!-- <category android:name="${applicationId}" />-->
<!-- </intent-filter>-->
<!-- </receiver>-->
<!-- &lt;!&ndash; User defined. For test only 用户自定义接收消息器,3.0.7开始支持,目前新tag/alias接口设置结果会在该广播接收器对应的方法中回调&ndash;&gt;-->
<!-- &lt;!&ndash;since 3.3.0 接收JPush相关事件&ndash;&gt;-->
<!-- <receiver android:name="com.aoleyun.os.jpush.MyJPushMessageReceiver">-->
<!-- <intent-filter>-->
<!-- <action android:name="cn.jpush.android.intent.RECEIVE_MESSAGE" />-->
<!-- <category android:name="${applicationId}" />-->
<!-- </intent-filter>-->
<!-- </receiver>-->
<!-- <receiver-->
<!-- android:name="com.aoleyun.os.receiver.InstallResultReceiver"-->
<!-- android:enabled="true"-->
<!-- android:exported="true" />-->
<!--since 3.3.0 Required SDK核心功能-->
<!-- <activity-->
<!-- android:name="cn.jpush.android.service.JNotifyActivity"-->
<!-- android:exported="true"-->
<!-- android:taskAffinity="jpush.custom"-->
<!-- android:theme="@android:style/Theme.Translucent.NoTitleBar">-->
<!-- <intent-filter>-->
<!-- <action android:name="cn.jpush.android.intent.JNotifyActivity" />-->
<!-- <category android:name="${applicationId}" />-->
<!-- </intent-filter>-->
<!-- </activity>-->
<!-- &lt;!&ndash; since 3.3.0 Required SDK 核心功能&ndash;&gt;-->
<!-- &lt;!&ndash; 可配置android:process参数将PushService放在其他进程中 &ndash;&gt;-->
<!-- &lt;!&ndash;User defined. For test only 继承自cn.jpush.android.service.JCommonService&ndash;&gt;-->
<!-- <service-->
<!-- android:name="com.aoleyun.os.jpush.PushService"-->
<!-- android:process=":pushcore">-->
<!-- <intent-filter>-->
<!-- <action android:name="cn.jiguang.user.service.action" />-->
<!-- </intent-filter>-->
<!-- </service>-->
<!-- Required . Enable it you can get statistics data with channel -->
<!-- <meta-data-->
<!-- android:name="JPUSH_CHANNEL"-->
<!-- android:value="${JPUSH_CHANNEL}" />-->
<!-- <meta-data-->
<!-- android:name="JPUSH_APPKEY"-->
<!-- android:value="${JPUSH_APPKEY}" /> -->
<!-- &lt;!&ndash; </>值来自开发者平台取得的AppKey&ndash;&gt;-->
<!-- 应用的其它配置 -->
<uses-library
android:name="org.apache.http.legacy"
@@ -464,7 +310,7 @@
<!-- 【可选】APP实现的Receiver,用于接收消息透传和操作结果的回调,请根据需要添加 -->
<!-- YOUR_PACKAGE_PATH.CustomPushReceiver需要改为自己的Receiver: -->
<receiver android:name="com.aoleyun.os.tpush.MessageReceiver">
<receiver android:name="com.aoleyun.os.push.tpush.MessageReceiver">
<intent-filter>
<!-- 接收消息透传 -->
<action android:name="com.tencent.android.xg.vip.action.PUSH_MESSAGE" />
@@ -487,6 +333,35 @@
<!-- MQTT END-->
<!-- 消息接收监听器 (用户可自主扩展) -->
<receiver
android:name=".push.alipush.AliyunMessageReceiver"
android:exported="false">
<intent-filter>
<action android:name="com.alibaba.push2.action.NOTIFICATION_OPENED" />
</intent-filter>
<intent-filter>
<action android:name="com.alibaba.push2.action.NOTIFICATION_REMOVED" />
</intent-filter>
<intent-filter>
<action android:name="com.alibaba.sdk.android.push.RECEIVE" />
</intent-filter>
</receiver>
<service
android:name=".push.alipush.AliMessageIntentService"
android:exported="false">
<intent-filter>
<action android:name="com.alibaba.push2.action.NOTIFICATION_OPENED" />
</intent-filter>
<intent-filter>
<action android:name="com.alibaba.push2.action.NOTIFICATION_REMOVED" />
</intent-filter>
<intent-filter>
<action android:name="com.alibaba.sdk.android.push.RECEIVE" />
</intent-filter>
</service>
<!-- 【必须】 请修改为 APP 的 AccessId,“15”开头的10位数字,中间没空格 -->
<meta-data
android:name="XG_V2_ACCESS_ID"
@@ -496,6 +371,13 @@
android:name="XG_V2_ACCESS_KEY"
android:value="AH5QD9ZMBJ6R" />
<!-- 请填写你自己的- appKey -->
<meta-data
android:name="com.alibaba.app.appkey"
android:value="333598281" />
<!-- 请填写你自己的appSecret -->
<meta-data
android:name="com.alibaba.app.appsecret"
android:value="4a3f7e105d894a239ed089f18607bc5a" />
</application>
</manifest>