Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
2.2k views
in Technique[技术] by (71.8m points)

jQuery calls to server not working on iOS in Cordova App

My question is quite similar to Why is jQuery Ajax not working in Cordova iOS app

I have a fully working Cordova Android App developed for a client, which is interacting with server using JS/jQuery calls. Now we need to publish the same on Apple Store as well, but I am not able to make jQuery calls work on iOS.

I am working with:

  1. cordova-ios@6.1.1.
  2. jQuery: 3.5.1
  3. X-Code 11.6
  4. Simulator Info: device.name: iPhone SE (2nd generation), device.runtime: iOS 13.6.

tried the solution suggested by @user12206763 on above mentioned question, but it didn't work for me, build failed after adding the suggested plugins. I then tried the solution suggested by @Aaron Mason on the same question, though build succeeded after removing plugin, but then the solutions didn't work, none of the jQuery calls to server worked on iOS. Can anyone suggest a working solution?


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...