Spoofing HTTPS in dev on ios #3464
Replies: 2 comments 11 replies
-
Capacitor always use capacitor protocol, in development and in production. But pointing to a web server in production apps is not really recommended and can lead to app rejections. |
Beta Was this translation helpful? Give feedback.
-
Ok, understood. Thanks. I'm using a create-react-app-based framework, so I should be able to start the dev server with HTTPS and then point capacitor to it. Thanks. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I am using HTTPS in production as described here: #1478 (comment)
basically by setting
server.url
to https://$hostname/I noticed that ios in development uses the capacitor protocol/scheme as described here: #758 (comment)
Can I test my HTTPS-dependent stuff in development on ios? Like, for geolocation, I polyfill
navigator.geolocation
to use capacitor's geolocation (ifisPlatform(ios) && !isPlatform(mobileweb)
, but them i'm not really testing how it will be in production.Beta Was this translation helpful? Give feedback.
All reactions