PhoneGap plugin for ios