cordova – Phonegap 8.1.1 IOS BarcodeScanner Situation


I’m constructing an app which makes use of Barcodescanner-plugin for IOS.
On Android this plugin works completely effective however on IOS it doesnt and I can not open a digital camera and getting error of

'Undefined just isn't an object(evaluating 'scanner.scan')

var scanner = cordova.plugins.barcodeScanner;
plugins worth => undefined

I’ve tried on some options talked about on web site however didnt work.

What I’ve already tried on are

  1. ios platform delete and re-add
    => nothing’s modified
    replace ios platform to v6.0.0
    => iphone app crushes

  2. added line
    <edit-config goal="NSCameraUsageDescription" file="*-Data.plist" mode="merge"> <string>To scan barcodes</string> </edit-config>
    => getting construct error

  3. addeed data.plist
    Privateness - Digital camera Utilization Description
    => nothing’s modified

Platform and Model

  • Cordova v9.0.0
  • ios 5.1.1
  • phonegap-plugin-barcodescanner 8.1.1 (git+ssh://git@github.com/phonegap/phonegap-plugin-barcodescanner.git#bd82b3f54802b3d70cd81d6b3d0f3b)
  • X-code 13.2.1
  • Node.js 16.16.0
  • iPhone 15.5

Any assist and recommendation can be appreciated.
Thanks.