app/src/main/AndroidManifest.xml
@@ -33,15 +33,18 @@
        android:name="android.permission.REQUEST_INSTALL_PACKAGES"
        tools:ignore="ProtectedPermissions" />
    <!--    Android 9 系统上默认所有Http请求被禁止,添加android:usesCleartextTraffic="true" ,确保Android 9上可以用tbs打开文档-->
    <application
        android:name=".CommonApplication"
        android:allowBackup="true"
        tools:replace="android:allowBackup"
        android:hardwareAccelerated="true"
        android:icon="@mipmap/ic_launcher"
        android:label="@string/app_name"
        android:networkSecurityConfig="@xml/network_config"
        android:roundIcon="@mipmap/ic_launcher_round"
        android:supportsRtl="true"
        android:usesCleartextTraffic="true"
        android:theme="@style/AppTheme.NoActionBar"
        tools:ignore="GoogleAppIndexingWarning, LockedOrientationActivity"
        tools:targetApi="n">
@@ -70,6 +73,21 @@
            </intent-filter>
        </receiver>
        <receiver
            android:name=".util.push.MyMessageReceiver"
            android:exported="false"> <!-- 为保证receiver安全,建议设置不可导出,如需对其他应用开放可通过android:permission进行限制 -->
            <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>
        <activity
            android:name=".module.MainActivity"
            android:label="@string/app_name"