Skip to content

udayjajoo/hellojs-phonegap-demo

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hello.js and PhoneGap Demo

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.

Setup this demo app

  • 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 run cd www/ and bower install hello --save for 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.

Update an existing phonegap app

HelloJS requires a phonegap app to meet the following conditions...

  • Include HelloJS into project, You can either use bower e.g. bower install hello --save or 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.

Bugs

If you encounter any bugs please create a ticket at the Hello.js repo

About

Demo application of Hello.js running inside Phonegap

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • CSS 100.0%