phonegap compatibility