PhoneGap detector