iOS and Android PhoneGap plugin