Emulate ios with live reload not working


#1

HI there is problem with live reload.
What I did:

//THIS IS WORKING FINE
ionic start myApp tabs
cd myApp
ionic emulate ios -lc

//BUT WHEN I DO
ionic platform remove ios
ionic platform add ios
ionic emulate ios -lc

//after this ionic app never show up I can see only splash screen still loading.


#2

Got same problem, pending at splash screen.


#3

HERE IS SOLUTION:

Add tag in your config.xml:

<allow-navigation href="*"/>
Or for security, only assign your local dev server to href, something like below:

<allow-navigation href="http://192.168.1.158:8100" />
And change the ip and port to your own and ensure the value of href can be visit in your browser.