Service for Angular and Cordova