Ionic BarcodeScanner does not work on ios

ionic barcode scanner
ionic 3 ionic native barcode scanner
barcode scanner options ionic
ionic 3 native barcode scanner
ionic capacitor barcode scanner
ionic v3 barcode scanner
qr code scanner ionic

I created an ionic app, it is work on android good. But the barcode scanner is not working correct in ios.

My code;

$cordovaBarcodeScanner.scan().then(function (barcodeData) {
  console.log("Data : "+barcodeData.text);

But XCODE giving me something like that as non-stop;

When I tried to this;

  function (result) {
      alert("We got a barcode\n" +
            "Result: " + result.text + "\n" +
            "Format: " + result.format + "\n" +
            "Cancelled: " + result.cancelled);
  function (error) {
      alert("Scanning failed: " + error);
      "preferFrontCamera" : true, // iOS and Android
      "showFlipCameraButton" : true, // iOS and Android
      "prompt" : "Place a barcode inside the scan area", // supported on Android only
      "formats" : "QR_CODE,PDF_417", // default: all but PDF_417 and RSS_EXPANDED
      "orientation" : "landscape" // Android only (portrait|landscape), default unset so it rotates with the device

getting this error:

Warning: Attempt to present <CDVbcsViewController: 0x15f30c400> on <MainViewController: 0x15dd4fab0> whose view is not in the window hierarchy!

Ionic Native Barcode Scanner not working on iOS, I'm having an issue with the barcode scanner that comes with Ionic Native. It works perfectly on Android, but on iOS I get nothing, not even an� I tried adding and removing ios with ionic platform remove ios and `ionic platform add ios' which doesn't do anything. On Mon, Apr 11, 2016 at 2:31 PM, Justin Willis wrote: So, I have tested on my android devices (Nexus 7 2013 running Android 6.0.1 (latest stable public release), Nexus 6 running the Android N dev

i have scanner problem before, for no reason when i click button to fire scanner function it fired twice... so i have to work other way around.


<button class="button button-positive" ng-click="scanBarcode()">Scan</button>


$scope.scannerOpened = false;

$scope.barcodeSearch = function() {
    if(!$scope.scannerOpened) {
        $scope.scannerOpened = true;
        $ionicPlatform.ready(function() {
                function(result) {
                function(error) {
            ).finally(function() {
                $scope.scannerOpened = false;

ionic and ngcordova: scanner not working with ios? � Issue #98 , Then I did a build using phone gap online builder from adobe and the app itself runs, but when I try to activate the barcode scanner from within� This is an older issue, but one i have seen many times as part of working with ionic. The real issue is that for some reason the action that launches the scanner is detected as executed twice, causing 2 instances of the scanner plugin to launch.

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<widget id="com.ionicframework.Project" version="0.0.4" xmlns="" xmlns:cdv="">
       Masada Mobile
  <author email="" href="">
  <content src="index.html"/>
  <access origin="*"/>
  <preference name="webviewbounce" value="false"/>
  <preference name="UIWebViewBounce" value="false"/>
  <preference name="DisallowOverscroll" value="true"/>
  <preference name="android-minSdkVersion" value="16"/>
  <preference name="BackupWebStorage" value="none"/>
  <preference name="SplashScreen" value="screen"/>
  <preference name="AutoHideSplashScreen" value="true"/>
  <preference name="ShowSplashScreenSpinner" value="true"/>
  <preference name="SplashScreenDelay" value="3000"/>
  <feature name="StatusBar">
    <param name="ios-package" value="CDVStatusBar" onload="true"/>
  <platform name="android">
    <splash src="resources\android\splash\drawable-land-ldpi-screen.png" density="land-ldpi"/>
    <splash src="resources\android\splash\drawable-land-mdpi-screen.png" density="land-mdpi"/>
    <splash src="resources\android\splash\drawable-land-hdpi-screen.png" density="land-hdpi"/>
    <splash src="resources\android\splash\drawable-land-xhdpi-screen.png" density="land-xhdpi"/>
    <splash src="resources\android\splash\drawable-land-xxhdpi-screen.png" density="land-xxhdpi"/>
    <splash src="resources\android\splash\drawable-land-xxxhdpi-screen.png" density="land-xxxhdpi"/>
    <splash src="resources\android\splash\drawable-port-ldpi-screen.png" density="port-ldpi"/>
    <splash src="resources\android\splash\drawable-port-mdpi-screen.png" density="port-mdpi"/>
    <splash src="resources\android\splash\drawable-port-hdpi-screen.png" density="port-hdpi"/>
    <splash src="resources\android\splash\drawable-port-xhdpi-screen.png" density="port-xhdpi"/>
    <splash src="resources\android\splash\drawable-port-xxhdpi-screen.png" density="port-xxhdpi"/>
    <splash src="resources\android\splash\drawable-port-xxxhdpi-screen.png" density="port-xxxhdpi"/>
    <icon src="resources\android\icon\drawable-ldpi-icon.png" density="ldpi"/>
    <icon src="resources\android\icon\drawable-mdpi-icon.png" density="mdpi"/>
    <icon src="resources\android\icon\drawable-hdpi-icon.png" density="hdpi"/>
    <icon src="resources\android\icon\drawable-xhdpi-icon.png" density="xhdpi"/>
    <icon src="resources\android\icon\drawable-xxhdpi-icon.png" density="xxhdpi"/>
    <icon src="resources\android\icon\drawable-xxxhdpi-icon.png" density="xxxhdpi"/>
  <platform name="ios">
    <splash src="resources\ios\splash\Default-568h@2x~iphone.png" width="640" height="1136"/>
    <splash src="resources\ios\splash\Default-667h.png" width="750" height="1334"/>
    <splash src="resources\ios\splash\Default-736h.png" width="1242" height="2208"/>
    <splash src="resources\ios\splash\Default-Landscape-736h.png" width="2208" height="1242"/>
    <splash src="resources\ios\splash\Default-Landscape@2x~ipad.png" width="2048" height="1536"/>
    <splash src="resources\ios\splash\Default-Landscape~ipad.png" width="1024" height="768"/>
    <splash src="resources\ios\splash\Default-Portrait@2x~ipad.png" width="1536" height="2048"/>
    <splash src="resources\ios\splash\Default-Portrait~ipad.png" width="768" height="1024"/>
    <splash src="resources\ios\splash\Default@2x~iphone.png" width="640" height="960"/>
    <splash src="resources\ios\splash\Default~iphone.png" width="320" height="480"/>
    <icon src="resources\ios\icon\icon.png" width="57" height="57"/>
    <icon src="resources\ios\icon\icon@2x.png" width="114" height="114"/>
    <icon src="resources\ios\icon\icon-40.png" width="40" height="40"/>
    <icon src="resources\ios\icon\icon-40@2x.png" width="80" height="80"/>
    <icon src="resources\ios\icon\icon-50.png" width="50" height="50"/>
    <icon src="resources\ios\icon\icon-50@2x.png" width="100" height="100"/>
    <icon src="resources\ios\icon\icon-60.png" width="60" height="60"/>
    <icon src="resources\ios\icon\icon-60@2x.png" width="120" height="120"/>
    <icon src="resources\ios\icon\icon-60@3x.png" width="180" height="180"/>
    <icon src="resources\ios\icon\icon-72.png" width="72" height="72"/>
    <icon src="resources\ios\icon\icon-72@2x.png" width="144" height="144"/>
    <icon src="resources\ios\icon\icon-76.png" width="76" height="76"/>
    <icon src="resources\ios\icon\icon-76@2x.png" width="152" height="152"/>
    <icon src="resources\ios\icon\icon-small.png" width="29" height="29"/>
    <icon src="resources\ios\icon\icon-small@2x.png" width="58" height="58"/>
    <icon src="resources\ios\icon\icon-small@3x.png" width="87" height="87"/>
  <platform name="wp8">
    <splash src="resources\wp8\splash\SplashScreenImage.png" width="768" height="1280"/>
    <icon src="resources\wp8\icon\ApplicationIcon.png" width="99" height="99"/>
    <icon src="resources\wp8\icon\Background.png" width="159" height="159"/>
  <icon src="resources\android\icon\drawable-xhdpi-icon.png"/>

Phonegap- plugin-barcode scanner doesnt work in iOS for a , Phonegap- plugin-barcode scanner doesnt work in iOS for a Cordova app #756. Closed. Junijoh opened this issue on Jan 8, 2019 � 2 comments. Closed� Ionic is the app platform for web developers. Build amazing mobile, web, and desktop apps all with one shared code base and open web standards

My QR Code was consisting of 16 characters. It was the cause of my problem, now it is solved. Thank you @Pushpa.

camera does not show on iOS � Issue #593 � phonegap/phonegap , Actual Behaviour phonegap-plugin-barcodescanner is working on android but not on ios. On ios when i try to scan it did not show the camera, and if i click agai.. . Cordova CLI version and cordova platform version. Cordova� The plugin works like a charm on Android, but on iOS 7.1.2, the scanner does not open. Not sure if a bug, or a problem between keyboard and chair, as I am very new to iOS :( This comment has been minimized.

Reviewing the ios library, it only contains the following types of formats, so it does not work for iOS. If you find some method to scan PDF417 in ios using ionic, you can share it!

typedef enum BarcodeFormat {
    BarcodeFormat_None = 0,
} BarcodeFormat;

I invite you to review the response in phonegap-plugin-barcodescanner, type PDF417 bar-codes using ionic

The camera opens but it does not read the barcode iOS � Issue #607 , Sample Code that illustrates the problem. cordova.plugins.barcodeScanner.scan ( function (result) { console.log(result.text); }, function (error)� $ ionic cordova platform add ios $ ionic cordova platform add android. These commands will create a config.xml file, which is used to define Cordova iOS and Android settings. Cordova reads this file and applies each setting as it builds each native app binary. There are more steps to configure iOS and Android native tooling. Much better!

Solved: cordova.plugins.barcodeScanner.scan doesn't work o , It works with all the others devices I tested (iPhone, Android smartphones and Android tablets). With the iPad, there is a problem. As you can see� Using ionic cordova platform ios @5.0.0 Url scheme redirect for OAuth log in, does not work, when app is accessed from within another app. This is working with cordova ios @4.5.4. What is expected to happen? Installing my app from Test Flight, clicking the 'open' button inside Test Flight, opens the app and presents a login view.

Scanbot Barcode Scanner SDK Cordova Plugin, Please note that this plugin does not work with the deprecated Android Support Libs. For iOS apps: Mac OS with latest Xcode and Command� I run the barcodescanner plugin to encode but I am unable to display the generated QR Code in iOS. I am breaking my head trying to resolve this. Could you tell me, after downgrading to UIWebView, when you encode in iOS, does the QR Code image open automatically? I downgraded to UIWebView but the QR Code is still not displaying for me. Thanks!

Creating a Barcode Scanner App with Ionic, Scanning a barcode or a QR code is a pretty common business request. to step through creating a mobile scanner application using Ionic, Xcode, and an iPhone . ionic cordova plugin add phonegap-plugin-barcodescanner npm install -- save Find the home.ts file and open it in your favorite editor. Ionic is the app platform for web developers. Build amazing mobile, web, and desktop apps all with one shared code base and open web standards <!--t.>

  • not solved yet. please help ?
  • actually barcode scanner is running and trying to scan. but its cannot getting result...
  • @AhmetDemir i'm getting result now in ionic too. have you check with proper bar code?
  • @AhmetDemir yes my config.xml file only contains this many setup for ios platform. can you attach or link the QR code that you are trying to scan?
  • @AhmetDemir i think it is qr code issue ... i'm also not able to scan that qr code.
  • Qr Code Created by Primefaces automatically. Can you send to me your qr code that yu are trying too ?
  • thank you for reply but,Unfortunately İt is not working
  • Can you show us your barcodescanner version? "Ionic plugin list"
  • phonegap-plugin-barcodescanner 5.0.0 "BarcodeScanner" @Ben
  • and when i use $ionicPlatform.ready.. button never shown anything
  • As you see at the top my issue is already solved. My issue was't about PDF417, it's about number of barcode generetor character.