使用S9设备解析服务器I / O失败消息,与其他人一起工作

问题描述 投票:0回答:1

当尝试向解析服务器发送请求时,它通常可以正常工作,但是对于S9设备,我会收到I / O失败错误消息。当设备上没有互联网连接时,通常会显示此消息。但是,我确保手机已连接到互联网并尝试使用wifi和4G。

parse-server版本:3.1.3 android解析:1.18.5

android parse-platform parse-server
1个回答
0
投票
 Parse.initialize(new Parse.Configuration.Builder(this)
                .applicationId("")
                .clientKey("")
                .server("https://thisisatest.herokuapp.com/parse/") // https instead of http
                .build()
        );

在服务器URL中使用https而不是http修复了问题。

© www.soinside.com 2019 - 2024. All rights reserved.