Added phonegap config
Online/offline checking