Phonegap implementation for emergency-app