Added phonegap integration