I have been using the Barcode Scanner Phonegap plugin on Android, and tried to implement the same on iOS. However it seems like the documentation is outdated. The Github README.md file does not really apply to the current version of Xcode and latest ZXing library. I am using Xcode 4.6.2. I tried to follow the instructions from here on iOS 6.1 but many things are different. My code compiles but it does not seem to be able to call the scanner. Any ideas?
This works. It is the same plugin updated by #zeroasterisk. It does the trick, until PhoneGap guys update the plugin.
Related
I was playing around with Facebook SDK with react-native generated ios app template. I was following the instructions here: https://developers.facebook.com/docs/ios/getting-started but somehow did not see Framework Search Paths mentioned in step 4.5. the react-native generated ios project seems to only have header search path, as shown below.
I was using latest Xcode version (9.3)
Try upgrading project templates - Upgrade guide
Or try to use RN wrappers available on the internet.
I personally like these two - this and this
Good luck!
You need to change Basic to All tab at the top of the menu
No need of upgrading anything
I have an app built on Cordova 3.3 running this phonegap-estimote plugin.
All works great on iOS 7 devices, but will crash on startup for any version previous.
I've tried using window.device.version on DeviceReady to bypass calls related to the plugin, but I think the app crashes on plugin initialization.
So my question: is there a way to conditionally load a plugin or prevent it from initializing?
This is Wojtek Borowicz, I'm a community evangelist in Estimote.
Please note that Estimote SDK, for which the referenced PhoneGap plugin was built, is only compatible with iOS 7. You can however set some code within your libraries and the CoreLocation from 'required' to 'optional'
I installed the barcode plugin for phone gap and followed all the instructions.
But when I launch the application and press the button to start scanning for a code, it doesn't do anything.
Imported all the files, added it the plugins,...
Still no luck. It just doesn't do anything and I'm also aint getting any error messages.
Anyone has any idea of why it doesn't load/show ?
Using latest phone gap (cordova) and iOS 5.0
As far as I understand the current version of the iOS barcode scanner plugin was tested with Phonegap not higher than 1.5.0.
http://groups.google.com/group/phonegap/msg/7a56c9de171050a1
To make initial tests just follow the instructions from the link above:
add Phonegap 1.5.0 to xCode
unzip the xCode project below and run it on a physical device with a webcam: https://github.com/phonegap/phonegap-plugins/tree/master/iOS/BarcodeScanner/Example
If this is working you can try the same in your own project.
I'm trying to use the BarcodeScanner PhoneGap plugin on the new PhoneGap 1.5 but can't compile it.
I'm following the instructions here: https://github.com/phonegap/phonegap-plugins/tree/master/iPhone/BarcodeScanner
But it seems to be for the previous releases.
I'm using the Xcode 4.2, PhoneGap 1.5 and building for iOS 4.0+
Has anyone got this plugin working in PhoneGap 1.5?
Hi new updation available that supports upto 2.0 https://github.com/phonegap/phonegap-plugins/tree/master/iOS/BarcodeScanner
Phonegap 1.5 has come up with a major change which broke many things. I see it's backward compatible but not completely sure.
I just wrote a YouTubeUploader plugin with Phonegap 1.5 and realized instead of Phonegap it's Cordova stuff there. So if the plugin doesn't work, try modifying source code to use Cordova naming instad of Phonegap.
I will write about my plugin soon.
I have xcode 4.2 installed which only allows me to launch a simulator for SDK 4.3 and 5.0. I would like to test on a simulator for SDK 4.0. How would I do this?
From the research I have done it seems that installing an earlier version of xcode will overwrite some of my xcode 4.2 files? I looks as if you have to start with installing the earliest version and end with the latest version. But I'm not sure.
I know there are many questions like this already, but nothing that covers exactly what I'm asking, the other examples use different version in different orders and don't seem to provide a really solid guide on achieving this.
Thanks
Download the old Xcode and extract simulator and sdk folders.
Than copy it to your xcode path.
that's all.