phonegap camera works on iPhone, but not iPad - iphone

I am new to PhoneGap, and I am building an app using PhoneGap + JQuery Mobile (cordova-1.7.0rc1).
trying to use the camera API and I run the app on the iPhone and everything works great.
trying to connect my iPad and test the app but I see this in the log:
Error: executing module function 'setInfo' in module 'cordova/plugin/ios/device'. Have you included the iOS version of the cordova-1.7.0rc1.js file?
looked in PhoneGap site and they have only one JS for all iOS devices....
what am I missing?
thanks for your help in advance.

From Shaz:
You probably added the www project as a group, not a folder reference.
Add as a folder reference. Also, iOS 5 is a bit finicky, try a clean
first.
See this image:
http://docs.phonegap.com/en/1.7.0/img/guide/getting-started/ios/create-folder-reference.png
From: http://docs.phonegap.com/en/1.7.0/guide_getting-started_ios_index.md.html#Getting%20Started%20with%20iOS

Related

VMPinterest Not working for Ipad

i want to integrate Pinterest to my app for both ipad and iphone version. for that i do some googling and find VMPinterest framework. i download its demo its working fine with iphone but not working with ipad version.
Following issue i find it
its not authenticate properly it showing signing is successfully every times although i pass wrong email or pass.
its not able to get the board name
plz help me out if any body used this framework for ipad or if you have another way to integrate Pinterest than plz answer or comment.
Thanks
Try to download this API from this link: https://github.com/Lascorbe/LASharekit
Its working fine for me. Merge this into your App.
I downloaded the latest version of VMPinterest framework (they have released a new version) and it does works perfectly with iPad (i have tested for ipad mini).
I would recommend VMPinterest framework. as unlike others it doesnt take you to web page but it directly get you post the image remotely.
They have also released a demo app using this framework - is live on appstore..
App link https://itunes.apple.com/us/app/vmpinterest/id607998053?ls=1&mt=8
So the framework is appstore approved.
Its compatible with iOS 4.3 and above and runs on iPod touch/iPhone/iPhone5/iPad/iPad mini
For complete list of features visit Varshyl Mobile site

unable to add Facebook SDK in iphone application

I am working on an iphone application where i am uploading video to youtube i have successfuly worked around that.
Now when i try to integarte the facebook in app it is creating a problem due to SBJason.h file in both the sdk. as both the sdk have SBJason file in their SDK kit.
So i need to have any workaround you can suggest.
Thankx in advance.
You have to remove one of the SDK's SBJson.
First see which is the updated one
If you see any updated one, keep it and remove the older one.
If Both are same, so you can remove any of them, it will not effect the project (hopefully)

Zxing for iphone using HTML5/javascript

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.

Phonegap app not opening camera

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.

How to deploy a jquery-mobile web app to an Iphone store app

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.