cordova - Ionic: Connection to server was unsuccessful -


when try run ionic app in emulator or device. following error:

the connection server unsuccessful (http://192.168.0.8:8100)

however, works alright in browser through ionic serve.

i hope not due content security tag or cordova whitelist plugin settings follows:

<meta http-equiv="content-security-policy" content="default-src *; style-src 'self' 'unsafe-inline'; script-src * 'unsafe-inline' 'unsafe-eval'">    <allow-navigation href="http://*/*"/>   <access origin="*"/> 

possible issues:

  1. check if device under same wi-fi.

  2. check if firewall not blocking 8100 , 35729 ports.

  3. check following tags:

    <content src="index.html"/> <access origin="*"/> <allow-navigation href="http://ionic.local/*"/> <allow-navigation href="*"/> <allow-navigation href="http://192.168.0.8:8100"/> <allow-intent href="http://*/*"/> <allow-intent href="https://*/*"/>


Comments

Popular posts from this blog

javascript - How to get current YouTube IDs via iMacros? -

c# - Maintaining a program folder in program files out of date? -

emulation - Android map show my location didn't work -