# Ionic 3 - Cancel button for Barcode Scanner on android

**URL:** <https://forum.ionicframework.com/t/ionic-3-cancel-button-for-barcode-scanner-on-android/176480>\
**Category:** Ionic Native\
**Created:** [October 29, 2019, 9:43am UTC](https://forum.ionicframework.com/t/ionic-3-cancel-button-for-barcode-scanner-on-android/176480 "2019-10-29T09:43:54Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![user-rudra](https://avatars.discourse-cdn.com/v4/letter/u/f9ae1b/32.png) [@user-rudra](https://forum.ionicframework.com/u/user-rudra)\
**Post date:** [October 29, 2019, 9:43am UTC](https://forum.ionicframework.com/t/ionic-3-cancel-button-for-barcode-scanner-on-android/176480/1 "2019-10-29T09:43:54Z")

</div>

I am using barcode scanner for my ionic 3 app. The plugin has cancel button for iOS. But there is no such button for android. Can someone help me on this? You can also suggest me other barcode scanner plugin, free or paid. However, I need scanner for barcodes only, so QRScanner plugin did not work for me.

---

<div class="post-metadata">

**Author:** ![sonicwong](https://avatars.discourse-cdn.com/v4/letter/s/aeb1de/32.png) [@sonicwong](https://forum.ionicframework.com/u/sonicwong)\
**Post date:** [October 30, 2019, 10:00am UTC](https://forum.ionicframework.com/t/ionic-3-cancel-button-for-barcode-scanner-on-android/176480/2 "2019-10-30T10:00:48Z")

</div>

give a try on this:

> **[Ionic Framework](https://ionicframework.com/docs/v3/native/qr-scanner/)**
>
> 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

The original version dont come with barcode support, see this on how to add barcode support:

> <https://github.com/bitpay/cordova-plugin-qrscanner/issues/132>
>
> As you provide a really nice way of scanning QR code and keep the view behind the webview, it would be...

---

<div class="post-metadata">

**Author:** ![user-rudra](https://avatars.discourse-cdn.com/v4/letter/u/f9ae1b/32.png) [@user-rudra](https://forum.ionicframework.com/u/user-rudra)\
**Post date:** [October 30, 2019, 1:57pm UTC](https://forum.ionicframework.com/t/ionic-3-cancel-button-for-barcode-scanner-on-android/176480/3 "2019-10-30T13:57:36Z")

</div>

Thanks, I will give this a try

---

<div class="post-metadata">

**Author:** ![user-rudra](https://avatars.discourse-cdn.com/v4/letter/u/f9ae1b/32.png) [@user-rudra](https://forum.ionicframework.com/u/user-rudra)\
**Post date:** [November 14, 2019, 10:42am UTC](https://forum.ionicframework.com/t/ionic-3-cancel-button-for-barcode-scanner-on-android/176480/4 "2019-11-14T10:42:07Z")

</div>

I tried the solution for QR Scanner and it worked. But the solution is not consistent. Sometimes it works like a charms and I can scan barcodes one after another. However, sometimes it does not work, even if I kept scanning the code for 5 min.

---

<div class="post-metadata">

**Author:** ![sonicwong](https://avatars.discourse-cdn.com/v4/letter/s/aeb1de/32.png) [@sonicwong](https://forum.ionicframework.com/u/sonicwong)\
**Post date:** [November 15, 2019, 8:48am UTC](https://forum.ionicframework.com/t/ionic-3-cancel-button-for-barcode-scanner-on-android/176480/5 "2019-11-15T08:48:08Z")

</div>

Try give a delay (1-2sec) on each scan success.

---

<div class="post-metadata">

**Author:** ![user-rudra](https://avatars.discourse-cdn.com/v4/letter/u/f9ae1b/32.png) [@user-rudra](https://forum.ionicframework.com/u/user-rudra)\
**Post date:** [November 15, 2019, 9:42am UTC](https://forum.ionicframework.com/t/ionic-3-cancel-button-for-barcode-scanner-on-android/176480/6 "2019-11-15T09:42:33Z")

</div>

Ok, will try it and let you know.
