I am having trouble with fetch
on iOS physical device only. I am NOT using Capacitor HTTP. The fetch works fine on iOS Simulator, Android Emulator, Android Physical Device, but not on a iPhone Physical Device. The endpoint is not called and the request eventually times out.
Logs:
⚡️ TO JS {"value":"http:\/\/192.168.1.190:8080\/api"}
⚡️ [error] - {} <-- This is a console.error of the error in catch statement.
I tried adding the following to Info.plist
. No luck.
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key>
<true/>
</dict>