How to fix the connection to the server was unsuccessful. (file ///android_asset/www/index.html)

Haddar Macdasi picture Haddar Macdasi · Jan 5, 2017 · Viewed 41.3k times · Source

I've added material icons to ionic2 app , and since then I get error ""The connection to the server was unsuccessful. (file:///android_asset/www/index.html)"" although the css and fonts file of MaterialIcons are in the assets folder (I've install it locally) there is no call to "https://fonts.googleapis.com/icon?family=Material+Icons" what can I do ? Can I fix it or know why the timeout suddenly .

Answer

Haddar Macdasi picture Haddar Macdasi · Jan 8, 2017

Add <preference name="loadUrlTimeoutValue" value="60000" /> To config.xml