ios - 我仅在 iPhone 中得到延迟的 Ionic native http 响应

标签 ios http ionic3 http-post

我在使用 Ionic native 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");
});

最佳答案

在模拟器中运行您的应用程序 去开发者选项选择你的应用程序 enter image description here

然后单击网络以跟踪您的所有请求 enter image description here

希望您能发现请求有什么问题。

关于ios - 我仅在 iPhone 中得到延迟的 Ionic native http 响应,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52360956/

相关文章:

ios - 无法将数据转换为字符周围的字符串

ios - UIImageView 在自定义 UICollectionViewCell 中返回 nil

http - 是否可以同时运行 http.ListenAndServe() AND ReadFromUDP() ?

javascript - 使用 Ionic DateTime 分两步选择日期和时间

angular - 数字输入上的 ngModel

angular - 将 Angular Material 主题添加到 ionic 3

ios - 自动布局约束优先级

ios - 如果添加了标签,则 presentModalViewController 无法显示

http - 安全 : true on cookie for forced https

python - 监控网站的内部重定向