Skip to content

Why does Capacitor choose to run the app on a localhost server instead of just from the filesystem. #3211

Answered by jcesarmobile
tafelnl asked this question in General
Discussion options

You must be logged in to vote

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.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@IT-MikeS
Comment options

Answer selected by imhoffd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants