Angular & Ionic, HTTP Get not working in real device IOS

后端 未结 3 1185
情深已故
情深已故 2021-01-11 15:08

I have problem in my app , when I run the app in local host it\'s working without problem and I can see the channel list but when I try to test the app by physical device it

相关标签:
3条回答
  • 2021-01-11 15:24

    Had exactly the same problem while working on a test server. It seems that iOS 9 added a layer of security to their applications by not allowing an app to connect to a server through HTTP rather than HTTPS.

    To fix this, you have to add This Patch to your info.plist iOS build.

    Remember that this solution is INSECURE and shouldn't be used in production web services.

    0 讨论(0)
  • 2021-01-11 15:36

    I had the same issue. If you are using cordova higher than 4.0 you will have to run cordova plugin add cordova-plugin-whitelist

    You can check your cordova version by running cordova -v

    Happy Coding.

    0 讨论(0)
  • 2021-01-11 15:40

    If you're using one of the latest versions of cordova you might have to install the cordova plugin whitelist:

    cordova plugin add cordova-plugin-whitelist
    

    If you're using IIS Express you might find a few problems.
    I've detailed some more explanation here.

    0 讨论(0)
提交回复
热议问题