This is a demo implementation of HelloJS within a PhoneGap app.
Hello.js is a library which lets clients connect with thirdparty API's within your app. Phonegap is Phonegap.
- See the guide for setting up a new phonegap application
- Clone this demo into the
www/directory - replacing its content. - Download HelloJS into
www/components/hello/folder. If you use bower then runcd www/andbower install hello --savefor the same effect. - Install InAppBrowser plugin - I installed it using
phonegap plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-inappbrowser.git.
HelloJS requires a phonegap app to meet the following conditions...
- Include HelloJS into project, You can either use bower e.g.
bower install hello --saveor manually download HelloJS and include where you like e.g.path/to/myPhonegapApp/www/bower_components/hello.js/folder. - Embed
<script src="./bower_components/hello.js/dist/hello.all.js">tag in your HTML page - Provision
<access origin="*" />in the phonegaps config.xml file - Insure InAppBrowser plugin is available - I installed it using
phonegap plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-inappbrowser.git- and include<gap:plugin name="org.apache.cordova.inappbrowser" />in phonegap's config.xml file if you haven't already.
If you encounter any bugs please create a ticket at the Hello.js repo