Application Error - connection to server was unsuccesfull

My system information:

Cordova CLI: 6.4.0
Ionic Framework Version: 2.0.0-rc.3
Ionic CLI Version: 2.1.18
Ionic App Lib Version: 2.1.9
Ionic App Scripts Version: 0.0.48
ios-deploy version: Not installed
ios-sim version: Not installed
OS: Linux 4.1
Node Version: v6.9.0
Xcode version: Not installed
This is an Ionic 2 app, worked fine till recently. After upgrading to ionic framework Rc3 , during builds it throws an Error

-Application Error
connection to the server was unsuccessful. File://android_asset/www/index.html
Tried reinstalling android platform and all.

But nothing seems to work on even a basic app.

Config.xml file contains
An Ionic 2 Starter app.








I have upgraded the ionic app - scripts to 1.0.0
my current ionic info shows:

Cordova CLI: 6.4.0
Ionic Framework Version: 2.0.0-rc.3
Ionic CLI Version: 2.1.18
Ionic App Lib Version: 2.1.9
Ionic App Scripts Version: 1.0.0
ios-deploy version: Not installed
ios-sim version: Not installed
OS: Linux 4.4
Node Version: v6.9.0
Xcode version: Not installed

The app works fine in the emulator, however on the device it throws the “Application Error - connection to server was unsuccesfull”

I have tried the starter templates of ionic 2 and its the same error across 2 different linux machines and a windows 8 machine too.

Any help will be appreciated.

Solved the problem.
You need to add on the cordova-device-plugin and

then
to the config.xml to prevent timeout issues.

Hi @maggi what to do in config.xml ? thanks dude!!