Connecting Crouch End and Hornsey with news, views and information
I've been working my way through the very excellent Phonegap tutorial by Christophe Coenraets and I've covered parts [1 - 9]. In fact I've managed to get a little bit beyond that and made some adaptations to suit my particular application. I want an ios and android app that will read a barcode or provide an alpha lookup for club members arriving at a club training session. Coenraets' app looks up employees - a very good start. The changes I have managed to make are
1) change the data store so that it stores club members not employees
2) change the alpha look up so that it shows a membership expiry date and the member id
3) change the code so that it refers to 'members' not 'employees'
But there I get stuck. the additions I want to make are:
a) look up by membership id, either by typing in the number or via the smartphone camera's reading a barcode
b) flag up a warning if a membership is out of date
c) write away the record of the member's visit
Thank you for taking the time to read this.
If you can help please contact email@example.com.
Don't think you need a native app - could be better to move the logic to the web and use a 'thin' client.
Almost every phone is sensitive to QR codes - Google Goggles etc will do it for you Adrian - just add parameters to a QR code to get the data in - bar codes are so 1999... It's quite difficult to get users to download new apps...
When the phone reads the QR code, it lets the user choose to click on the URL, so you can have one like adrian.com/members?mycode=123
That goes to a webpage which displays the result:
member 123 due to expire in 6 days.
So it's the web application that has the logic - they're easier to write and maintain and intrinsically cross-platform.
Plenty more advice and suggestions if you want them - I really like talking about ideas and approaches most.
p.s. You do know that Phonegap got supplanted by Apache Cordova some time ago, don't you?
pps. If you must, here's a complete, solid, open source barcode app: https://github.com/zxing/zxing/