我只是在iPhone中延迟了Ionic原生的http响应

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

我在使用Ionic本机HTTP从API获取响应时遇到问题。有没有人知道如何在iPhone中解决这个问题。我花了几个小时寻找解决方案。它在其他设备和浏览器上正常工作。任何帮助,将不胜感激。你们知道这背后的原因吗?

this.httpGet.post(url,data,{}).then(data=>{
 console.log("data",JSON.stringify(data));
 let json_data = JSON.parse(data.data); 
 resolve(json_data)
}, (err) => {
 console.log(JSON.stringify(err));
 resolve("error");
});
ios http ionic3 http-post
1个回答
0
投票

在模拟器中运行您的应用程序转到开发人员选项选择您的应用程序enter image description here

并点击网络跟踪您的所有请求enter image description here

希望你会发现请求有什么问题。

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