whould you like to use esri geotriggers in your cordova applications ? This plugin do all the work for you .