Javascript interface between Parse push notifications and Cordova/PhoneGap