Why does Capacitor choose to run the app on a localhost server instead of just from the filesystem. #3211
-
I do not understand what advantages come from using the |
Beta Was this translation helpful? Give feedback.
Answered by
jcesarmobile
Jul 6, 2020
Replies: 1 comment 1 reply
-
Using All those problems go away if using http/https on Android and a custom scheme on iOS. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
imhoffd
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Using
file:
protocol to load the app code has a few bugs/problems, like html 5 routing not working, localStorage (or any web storage) can be lost on uri change, on iOS you can't fetch/XHR local files, etc.All those problems go away if using http/https on Android and a custom scheme on iOS.