BarcodeScanner isn't loading/showing - ios

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.

Related

How to upload Old Cordova iOS App to the App Store with WKWebView

Cordova iOS is giving me a very hard time. I have a Cordova iOS app written in 2016 and I am handling it now.
I believe you are familiar with the following app store issues regarding UIWebView:
ITMS-90809: Deprecated API Usage - New apps that use UIWebView are no longer accepted.
Instead, use WKWebView for improved security and reliability. Learn more (https://developer.apple.com/documentation/uikit/uiwebview).
Now my application is quite huge; it has Apple Pay feature, biometrics, lots of bridge calls between website and iOS app.
I tried to update Cordova in my app and then uploaded it, but it never worked. So I find out that first the physical structure of my app was wrong, all I had in my source tree is 'src' folder which had everything. So I created "hello world" Cordova iOS project from terminal (command line) and then noticed the difference of folders and files like config.xml hooks, nodeModules etc ..
Now my solution was to create a sample helloworld app and then copy my code into ios folder (platform->iOS-> My 100 files). But it did work. I followed this link: https://github.com/apache/cordova-plugin-wkwebview-engine
And i thought if i follow following lines of code in terminal :
cordova create wkwvtest my.project.id wkwvtest
cd wkwvtest
cordova platform add ios#4
cordova plugin add cordova-plugin-wkwebview-engine
I will create a Cordova app which will have ios 4 version of Cordova and then WKWebView will be integrated in my app and then i will be able to upload this app on app store.
But even this sample application gives me app store error of deprecated UIWebView. Has anyone found the clear cut solution to this problem?
Q1: Have you ever uploaded a sample test app like hello world to the TestFlight which has Cordova ios 4.1+ or even cordova ios 5.1+ version. Because I am assuming in Cordova wkwebview plugin all things related to uiwebview has already been handled or atleast in the latest version it has been handled and we don't need to do anything else apart from installing latest Cordova ios version.
Question 2: What should I do to upload my app on app store it has cordova-ios 4.1.1 right now. I tried many possible ways. Like for eg a) created a sample cordova-ios app with latest Cordova ios 5.1.1 and copied all my source files (almost 100-500) into ios folder, removed all uiwebview instance in my code (almost 50 places), but when I search for 'uiwebview' cordova library still has almost 120 search results.

Issues in AR App built in Unity using Vuforia SDK

I have created a small application in Unity using Vuforia SDK. It recognizes an image and projects a 3D model on the top of it.
I am able to run the app in Unity Editor but getting an issue when I try to create an iOS project and run the app on device.
I am trying to run it on iPhone X (iOS version 11.3) and this is the error that I am getting when the app starts:
VideoBackgroundConfig with screen size of zero received, skipping
config step
I searched the issue on net but the solutions that I got didn't work. I am using Vuforia version 7.0.47, Unity version 2017.3.1f1 Personal and XCode version 9.3 beta 4.
Could someone please provide some pointers?
This video shows how to solve this issue. Basically it is a XCode 9.3 bug. You need to copy an old XCode iOS 11.3 framework folder to the XCode 9.3.
https://www.youtube.com/watch?v=3roMSonIG5c
Did you initially create your project on Windows ? And then transfer to OSX ?
It is possible that some version of unity or xcode or vuforia don't run on OSX... You should re-import Vuforia after transfering to OSX.
It could also be due to the Lightning parameters, go to Windows>Lightning then Lightmaps tab. Uncheck Auto then rebuild, upload to iOS and try it again.

"WebFrame has been modified too many times, aborting " error coming in xcode and ios 10.3

i am working on a ionic project having following config:
cordova : 6.3.1
node : 6.10.3
ionic : 2.1.4
mac os sierra
x code 8.3.2
while running the project on the simulator of iPhone 6s 10.3 version i am getting the below mentioned error in x code output and app gets hanged on the splashScreen and login page is taking too long to come , and the buttons on the pages are responding very slow , i am not having any knowledge of objective c so unable to get the meaning of the error .
Any help is appreciated.
xcode output error:
Operation DDWebKitOperation: 0x6100000e9a00: container WebFrame: 0x610000001500 has been modified too many times, aborting
I've eliminated this error. I'm not sure if what I did will help you but I'll let you know just in case. What I've been doing is building my app in AngularJS 1. Then when I have a distribution ready I'm putting that in the www of the ionic project, then running the builds for ios and android. I'm NOT using any part of ionic other than using it to build so I started thinking perhaps I would take ionic out of the equation.
I updated to the latest version of xcode, then I used straight cordova to do the builds. Splash screen appears, fades, then app loads and works as it should. Voila. App now released on app store.
This also helped me resolve a different issue with the InAppBrowser plugin not working. On ios I had outgoing links which were opening the in app browser, then the user couldn't go back to the app because there was no back button.

Is there a direct way to upgrade from Cordova 1.9.0 to 2.9.0?

I am facing splash screen problem for iPhone 5. Splash screen looks proper first time then suddenly it displays a smaller splash image which was a bug in cordova library. So, i want to upgrade my Cordova version.Can i directly switch to 2.9.0 from 1.9.0 because i am unable to download 2.0.0 version ? I am getting network error after 90% download while network is working properly.
I think no. But you can make new app based on Phonegap 2.9, install your plugins again and simple copy browser part from old version of your application to current.
I'm not sure if you can directly upgrade from 1.9 to 2.9 - that's a big jump. You should try it and let us know how it works. If it is too much work to make a fresh 2.9 app and copy your code over, you could follow the upgrade guide for iOS. If you apply the steps in order, it should work. The guide is here: http://cordova.apache.org/docs/en/2.9.0/guide_upgrading_ios_index.md.html#Upgrading%20Cordova%20iOS

PhoneGap Barcode Scanner Plugin (ZXing) on iOS

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.

Resources