The cordova application is getting the alerts from server