Message内部为什么提示异常了

kaito 13天前 47

最新回复 (4)
  • kaito 13天前
    引用 2
    这个是我们的自定义消息,其他自定义都正常,就这个有问题,但是ios上又是正常的
  • HeavyRain 13天前
    引用 3
    最近把多进程改成单进程了,可能能解决这个问题,请查看这个文件里的 https://gitee.com/wfchat/android-chat/blob/master/client/src/main/AndroidManifest.xml 下面这一段修改

        <application
            android:usesCleartextTraffic="true"
            tools:targetApi="m">
            <!--        clientService 可以配置运行在单独的进程,或直接运行在主进程-->
            <!--        当 IM 功能,不是应用的主要功能时,可以考虑让 ClientService 运行在单独的进程中-->
            <!--        当 IM 功能,是应用的主要功能时,ClientService 运行在主进程,性能会更好-->

            <!--        <service-->
            <!--            android:name="cn.wildfirechat.client.ClientService"-->
            <!--            android:process=":marsservice" />-->
            <!--        <receiver-->
            <!--            android:name="com.tencent.mars.BaseEvent$ConnectionReceiver"-->
            <!--            android:process=":marsservice" />-->

            <!--        clientService 默认运行在主进程-->
            <service android:name="cn.wildfirechat.client.ClientService" />
            <receiver android:name="com.tencent.mars.BaseEvent$ConnectionReceiver" />

            <!--must run in th main process-->
            <receiver android:name="cn.wildfirechat.remote.RecoverReceiver" />
        </application>
  • kaito 12天前
    引用 4
    修改后正常了
  • x86 12天前
    引用 5
    kaito 修改后正常了
    client 部分还有其他优化,建议也合并过去
返回