option 1.
[best practice] |
Running a local CA for development/testing [V] Cordova samples on iOS devices
To comply with Apple App Transport Security (ATS), this is mandatory to run the Cordova Sample on iOS devices.
You can following these guides to achieve this.
▪ Creating Certificates for TLS Testing
▪ Installing a CA’s Root Certificate on Your Test Device
|
option 2.
|
Use a SaaS service like ngrok
You should following its guide to run it.
Note Cordova Sample on iOS does not work in this way.
|
option 3.
|
Use a self signed Certificate
Note Cordova Sample on iOS does not work in this way.
Note PWA Sample does not work in this way.
|
option 4.
[as is] |
Stick to http://localhost
The http://localhost may still work in some case but you may encounter problems such as:
▪ Impossible to access the sample from different devices
▪ No way to run the sample in mobile devices
▪ Some API would failed depending on the security policy
|