iOS Question Error with iBarCode in iPadOS 26 in iPad Air - App Logs from Appetize.IO

hatzisn

Expert
Licensed User
Longtime User
Good morning everyone,

I tried to upload an application to the appstore that uses the iBarCode lib in a B4X Lib (NHBarcode) and also these libraries:



I tried to upload it to the AppStoreConnect and in the review they replied that there is an error on iPad Air with iOS 26 when they press the scan button. I tried the app in appetize.io and I have got the following logs from there. I am not sure of what am I supposed to do (which library is causing the problem). Meanwhile in iOS 15 it is working flawlessly.

 

b4x-de

Active Member
Licensed User
Longtime User
Possible cause for this: the camera could not be initialized successfully. In that case the native code fails to create a valid AVCaptureDeviceInput, so the scanner later tries to add a nil input to the AVCaptureSession, which leads to the exception.

Make sure the app is not missing the required camera usage description in the iOS plist. On iOS, camera access must be declared in the plist, otherwise access can fail or the scanner setup can break before a valid capture input is created. B4i supports plist additions with #PlistExtra in the project attributes.

Before starting the scanner, I would explicitly check the camera authorization status in B4i code
 
Upvote 0

hatzisn

Expert
Licensed User
Longtime User

Thank you for answering,

I have this code in the #PListExtra

B4X:
#PlistExtra:<key>NSCameraUsageDescription</key><string>This application uses your phone camera to scan barcodes</string>

Indeed, in my iPhoneSE it is asking while starting for the very first time permission to use the camera, while trying it in appetize.io it is not. I see these logs in iPhone 17 iOS 26 in appetize.io. Maybe the message underneath the "Error starting scanner" is the problem?

 
Upvote 0

hatzisn

Expert
Licensed User
Longtime User
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…