Want to use https request in phonegap application on iphone

岁酱吖の 提交于 2020-01-11 13:25:34

问题


I am trying to call https request in phonegap iphone app using jquery's method getJSON(),though it work fine in normal safari,but in mobile safari,it gives error like Download Failed-Safari cannot download this file

Please suggest me...

Thanks


回答1:


If I'm reading this right, I don't think it has to do with JSON. I'd suggest looking at what the URL is for the https request.

I believe that, generally, that error is because you are trying to download a file type that is not supported on the phone. It may be supported on "normal safari" (e.g. downloading an .exe or .dmg), but the phone is more selective about which types it will allow for download - since it doesn't "save to disk" to allow the user to deal with the unknown type later.

I have not looked into it, but I would guess this has to do with supported protocol handlers and/or mime types for the phone - and the URL you are requesting is not supported. :)



来源:https://stackoverflow.com/questions/3255500/want-to-use-https-request-in-phonegap-application-on-iphone

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!