Enhanced phonegap integration