Support for PhoneGap 3.1 or greater