Rajeev Kannav Sharma

Posts About

Cordova/Ionic Error page Html Handling

09 Sep 2015

Recently I worked on Hybrid Mobile Application and got Network Dependency to Start Application. Also What if Internet now available. So it’s pretty simple without writing own code and using Cordova Configuration.

cordova-error-page.html

Have such (Any name) html page to your application www folder. Write information which you need to share to user.

update config.xml

For iOs
  <platform name="ios">
    <preference name="ErrorUrl" value="cordova-error-page.html"/>
  </platform>
For Android
    <platform name="android">
        <preference name="ErrorUrl" value="file:///android_asset/www/cordova-error-page.html"/>
    </platform>
And if you get stuck… Ask Here

email me rajeevsharma86@gmail.com

Tweet to me at @rajeevkannav.