socialappslab / denguechat-ionic

Other
1 stars 0 forks source link

test using cordova-advanced-http plugin #83

Closed dman7 closed 6 years ago

dman7 commented 6 years ago

@cdparra based on this: https://www.npmjs.com/package/cordova-plugin-advanced-http, are you including the cordovaHTTP service?

With AngularJS
This plugin creates a cordovaHTTP service inside of a cordovaHTTP module. You must load the module when you create your app's module.

var app = angular.module('myApp', ['ngRoute', 'ngAnimate', 'cordovaHTTP']);
You can then inject the cordovaHTTP service into your controllers. The functions can then be used identically to the examples shown below except that instead of accepting success and failure callback functions, each function returns a promise. For more information on promises in AngularJS read the AngularJS docs. For more info on promises in general check out this article on html5rocks. Make sure that you load cordova.js or phonegap.js after AngularJS is loaded.
cdparra commented 6 years ago

Issues related to the use of cordovaHTTP seem to be solved now, so I am proceeding to merge this branch

I have, however, identified many other issues (at least one purely backend, ref #84) that should be solved to be fully working. Issues are part of epic #89 cc @dman7 @jorgeramirez