custom for SOS mobile app(cordova 2.5.0)