Open cdparra opened 6 years ago
According to the cordovaHTTP changelog, browser support is added in version 1.11
Event after trying
<plugin name="cordova-plugin-advanced-http" spec="1.11.1" />
the app fails in browser
Potential fix: use cordovaHTTP via ionic native wrapper rather than injecting the cordovaHTTP module
When running
ionic serve
, a blank page is shown. The problem is two-fold:The app angular module is loaded manually on deviceready event. This event is not fired in the browser, therefore, the following code does nothing:
The solution is to use the following, but this does not work in devices: