Flutter 最新Android APP极光推送自启动关联启动

2023-02-02  本文已影响0人  Superman168

前言

前两天上架安卓小米市场,被各种问题折磨的死去活来,一个iOS开发者也搞起了安卓上架,哎,没办法,小米和华为。

问题

小米主要问题如下:

image.png image.png

后来一直是这个问题,三番五次的改始终没过,改了SDK初始化位置,极光配置,只是没有改对地方。

正确解决方法:

在AndroidManifest.xml添加如下配置:

 <!-- 推送 start -->
        <receiver
            android:name="cn.jpush.android.service.PushReceiver"
            android:enabled="true"
            tools:node="replace"
            android:exported="true">
            <intent-filter android:priority="1000">
                <action android:name="cn.jpush.android.intent.NOTIFICATION_RECEIVED_PROXY" />
                <!-- Required  显示通知栏 -->
                <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>

        </receiver>
        <!--关闭自动启,关联启动-->
        <service tools:node="remove"
            android:name="cn.jpush.android.service.DaemonService"
            android:enabled="false"
            android:exported="false">
            <intent-filter>
                <action android:name="cn.jpush.android.intent.DaemonService" />
                <category android:name="${applicationId}" />
            </intent-filter>
        </service>

小米审核通过,华为的今天也通过了,单加<--关闭自动启,关联启动-->这个和极光的这个设置

//关闭关联启动逻辑
jPush.setWakeEnable(enable: false);

都是不行的,没效果。

上一篇 下一篇

猜你喜欢

热点阅读