i am new to ios development .
can anybody pls tell me . is it possible to use Zxing lib for scanning bar/qr-code on iPhone for a webapp(HTML5/javascript) ?
i mean my webapp needs to use Zxing , Is it possible ?
Barcode scanning requires use of the camera on your phone, this device is not available from a webapp and therefore you cannot scan barcodes from the webapp, regardless of the library you would like to use.
Also, I dont think you can use C, C++, Objective C libraries from your javascript/html5 these libs would have to be on the phone where your code cannot get to it, and your browser most certainly cant run it.
One alternative would be PhoneGap, I am not too familiar with it, but it is an iOS (and or Android) shell around a webapp that runs as a native app. You could probably get camera support in there and maybe use the Zxing lib. You would have to look into that, but then you dont 'really' have a webapp anymore either.
EDIT: For phoneGap and Zxing see also: how to scan barcode using phonegap
These days you can get it working with the HTML5 Camera API and this little beauty; https://github.com/LazarSoft
enjoy.
Related
i have developed iphone application almost, but for some screen i need to use already made functionality in java scripting, so i thought of using Phone gap, will it be possible to add this in already present project .
suggest me with your expert answers
thank you .
I think that is not possible to integrate phonegap with native app.
My suggestion if you just need to use javascript, html and css in your native app why are you looking for Phonegap ? Use UIWebView instead.
I wrote an app for iOS on iPhone and iPad. I would like to make the app (a children's game) I wrote available on my website through Flash. I don't know if this is possible...
Would I just have to write the application in another language? I can't find any tools that would help me make it available.
If you wrote your app in HTML5, then you can make it available to your website, but if written with obj C, I highly doubt there is any easy way out solution beside re-write the app in another language.
There are no tools to make an iOS application run through Flash Player.
Probably your best bet on writing an application that will run as a native app and within the web is to pursue writing a web application optimized for smartphones. This way you could use a UIWebView to run it within a native application (and thus still have it in the App Store) but also make it available via the web. You could even consider leveraging tools like Phonegap to help with this. But of course this means re-writing your application.
I have an app that I hired a company to build using Phonegap. The company is no longer able to support me with launching the app onto iTunes.
I have loaded the app and can compile it in Xcode. However the camera function is not working. I have tested the app before from a file they sent me and the camera function worked.
Is there special settings that you have to set in xcode 4 besides what is typical in order to use the camera?
You may be compiling for a different SDK. Make sure you are using the same one as before.
It shouldn't matter about the SDK you are working with.. the whole point of phonegap is to expose the native API's to javascript. So it's not the SDK, its the javascript. I am actually working on this now.. I will get back to you with my findings.
I have built a Jquerymobile webapp , I want to take it a step further, build additional features and deploy it as an iphone app. I am confused on connecting these two dots. I looked at Phonegap and Titanium. Phonegap does not allows to register yet and Titanium seems like I have to code everything again using Titanium apps . Any ideas on how to bridge the gap of connecting iphone app and jquerymobile.
I use phonegap for my iPhone apps and it works well. Phonegap Build will even encode the iPhone (and Android, Blackberry, etc) app for you so you don't have to use Xcode.
Phonegap download 0.9.6: http://www.phonegap.com/download-thankyou
How to start an app using Xcode and Phonegap: http://www.phonegap.com/start
signup for Phonegap Build: https://build.phonegap.com/
Can you just take your already written JS code and use it as your source for a UIWebView? Those middle-ware platforms you mentioned have their own JS libraries you need to use, but if the code you already made will work as-is on an iPhone, dumping it into a UIWebView should be all you need to do.
Can I really do that with the phone? Perhaps I would have to call any of the native API's, but I am not really sure whether and what is possible. I am pretty sure that the camera is accessible, so at the worst case I could send the picture to the server, decode the QR code on the server, and get the results on the phone, right ?
There's a QR code reading class here: http://www.libspark.org/wiki/QRCodeReader/en and some instructions on how to use it: http://blog.jactionscripters.com/2009/05/23/introduction-of-qr-code-reader-library/
While I've never done it, iOS does support the camera as far as I know so it should work just fine. The code is pretty similar to using a webcam.
And here's a library which claims to be improved: http://www.kasperkamperman.com/blog/flash-qrcode-reader-as3/
If you are working on a iOS (iPhone or iPad) project, i recommend you qr-zbar-ane native extension. You can find download links and sample code at : http://www.nativext.com/ane-by-os/ios/qr-reader-native-extension/