Open ghost opened 7 years ago
You cannot load the page in browser directly.
Instead, you need build it into a cordova hybrid app.
See what a cordova hybrid app is: https://en.wikipedia.org/wiki/Apache_Cordova
You can learn more on cordova homepage: http://cordova.apache.org/
should i be able to access the server from same phone when run on ionic view
No, I guess.
This plugin contains native code and javascript code. To use the full features, you will need to build the native code into your app, so the javascript code can call the native code via js-bridge.
But ionic view may not build cordova-http into it.
i tried these commands:
$ ionic cordova plugin add cordova-plugin-httpd
$ npm install --save @ionic-native/httpd
and all the other plugins seemed to work from the site, this must be a different story
Ok, this is right step to make the plugin working. You have to build it into an app (either android apk, or ios ipa package), then install into simulator or device.
The ionic view is only used to verify your HTML5 page layout and platform independent features. If some feature depends on native code, it cannot be verified in ionic view.
ok, i will try to build to android
the example code from the site leaves my browser saying "Run time Error" and in the browser console its telling me cordova is not available. How can i fix?