Тёмный
No video :(

Ionic QR Code Generator & Reader 

Simon Grimm
Подписаться 97 тыс.
Просмотров 75 тыс.
50% 1

Learn to generate QR codes within your Ionic app and scan QR codes as well!
🔥 Learn to build mobile apps with Ionic in my Ionic Academy: ionicacademy.com/
💎 Get the Built with Ionic Book: builtwithionic...
#############################
Want to read instead of watch? Here's the full tutorial: ionicacademy.c...
Want more tutorials? Here you go! devdactic.com/
Just getting started? Take my 7 Day Ionic Crash Course: ionicacademy.c...
#############################
You can also find me
on / schlimmson
on / devdactic
on / simongrimm_
#############################

Опубликовано:

 

27 авг 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 114   
@fredyosorio5443
@fredyosorio5443 5 лет назад
Seguí los pasos de este tutorial y al principio no me funcionaba, entonces decidí escribir al final ngx en la importación de app.module.ts y empezó a "funcionar" aún así no estaba correcto ya que me mandaba otro tipo de errores, al final solo volví a importar con la consola: npm install --save @ionic-native/barcode-scanner y funcionó correctamente. Si no pueden les marca un error de cordova en su navegador, ya la hicieron! solo tendrías que instalar la app de google play ionic devapp y correr tu aplicación desde el celular. Para correr la app en ionic devapp deberás seguir estos pasos: 1.- Echar a andar tu aplicación con ionic serve 2.- Conectarte a la misma red wifi (celular y computadora) 3.- Abrir la app (ionic devapp) y dar clic en el menú superior izquierdo 4.- Escribir la dirección ip de tu computadora (en windows con el comando ipconfig desde la consola y checar la que dice ipv4. En mac abrir el panel preferencias de red) 5.- Poner el puerto 8100 y listo!!! Escribo esto porque lo aprendí buscando mucho y me hubiera gustado encontrar las respuestas concisas! Saludos a todos!
@eldinkajdic
@eldinkajdic 6 лет назад
If you can't do " import {BarcodeScanner] from '@ionic-native/barcode-scanner' ", use 'npm install --save @ionic-native/barcode-scanner' and rewrite your import code
@renixmar3373
@renixmar3373 5 лет назад
Hi, there's this new error that popped out now, says BarcodeScannerOriginal is not assignable to type provider. I replaced it then with BarcodeScannerOriginal, but now I get an undefined provider error, that I have circular dependencies. Is there an specific version of this plugin in which this works?
@powderriverfarrier
@powderriverfarrier 7 лет назад
Makes the basic concept a piece of cake to understand.
@alejandrojimenez1562
@alejandrojimenez1562 5 лет назад
Thanks a lot, it worked on ionic 4. If '@ionic-native/barcode-scanner' didn't work, try to use '@ionic-native/barcode-scanner/ngx'
@galaxies_dev
@galaxies_dev 5 лет назад
This tutorial was for v3 so yes, with Ionic 4 you have to use all packages with /ngx at the end!
@alejandrojimenez1562
@alejandrojimenez1562 5 лет назад
@@galaxies_dev Thanks
@GianSandoval
@GianSandoval 2 года назад
como hacer para q te lleve al link directamente en caso de escanear productos, etc ????? no quiero q solo me muestre sino que se abra automaticamente el link
@yashodhasamarawickrama
@yashodhasamarawickrama 5 лет назад
Great tutorial ! Was very clear and precise !
@MushaGH
@MushaGH 7 лет назад
nice tutorial and easy to under stand even for a beginner like me tq so much.
@darrylbrown7170
@darrylbrown7170 5 лет назад
its giving me error for my Barcode Scanner when i place it under providers, please help its saying: ts] Type 'BarcodeScannerOriginal' is not assignable to type 'Provider'. Type 'BarcodeScannerOriginal' is missing the following properties from type 'FactoryProvider': provide, useFactory [2322]
@galaxies_dev
@galaxies_dev 5 лет назад
They might have changed the package, please check their Github page!
@prakashdasarathan350
@prakashdasarathan350 5 лет назад
import { BarcodeScanner } from '@ionic-native/barcode-scanner/ngx' try this
@saikinotes7799
@saikinotes7799 5 лет назад
Thankyou so much for this wonderful tutorial, clear, simple and precise.
@galaxies_dev
@galaxies_dev 5 лет назад
Thanks Jun!
@GuilloP
@GuilloP 6 лет назад
Gracias, I used the version 3 and worked great.
@xreme
@xreme 5 лет назад
Hi, It does not work for ionic 4 { "message": "Type 'BarcodeScannerOriginal' is not assignable to type 'Provider'. Type 'BarcodeScannerOriginal' is missing the following properties from type 'FactoryProvider': provide, useFactory", }
@galaxies_dev
@galaxies_dev 5 лет назад
For Ionic 4 you need to import the Ionic Native packages with /ngx at the end, did you do so?
@xreme
@xreme 5 лет назад
@@galaxies_dev solved :)
@xreme
@xreme 5 лет назад
but errors follow such as: " ERROR Error: Uncaught (in promise): Error: Template parse errors: Can't bind to 'qrc-value' since it isn't a known property of 'ngx-qrcode'. 1. If 'ngx-qrcode' is an Angular component and it has 'qrc-value' input, then verify that it is part of this module. 2. If 'ngx-qrcode' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message. 3. To allow any property add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component. "
@saurabhsharma-dl2xc
@saurabhsharma-dl2xc 4 года назад
using this tag UI not show i install plugin & barcode not generated scanner works properly..
@galaxies_dev
@galaxies_dev 4 года назад
Perhaps you need to specify the size as well like described on the Github page of the plugin as additional properties!
@Yvan15ize
@Yvan15ize 5 лет назад
clear short precise. Great!
@saikinotes7799
@saikinotes7799 5 лет назад
Thankyou for this tutorial but unfortunately my project got deleted, then when i tried to create ionic project again, Ionic 3 was no longer available, my cli goes to cli 4 and ionic 4 already so that the components itself and the syntax itself was totally different its not applicable and adaptable to this tutorial you provided. please help me :(((
@xreme
@xreme 5 лет назад
When you solve it, you tell me please :)
@ivanjohnson3994
@ivanjohnson3994 2 года назад
Hey Simon How would this work if i want to use it to turn a Image into a Qr Code can you please help
@galaxies_dev
@galaxies_dev 2 года назад
I think there are other JS libraries which can "read" the QR code from an image if you e.g. add it to a canvas inside the app!
@ivanjohnson3994
@ivanjohnson3994 2 года назад
@@galaxies_dev ohkay thanks appreciate the feedback
@maurosemproni9433
@maurosemproni9433 7 лет назад
i got the error "ngx-qrcode is not a known element" I imported the module in my app.module.ts and try to use the directive in a component that I wrote
@CocoboloCocoboleo
@CocoboloCocoboleo 5 лет назад
how?
@kitoerone
@kitoerone 4 года назад
did you solve it? i have the same problem
@pettrin
@pettrin 5 лет назад
Works, thank you!
@marcusshamase2050
@marcusshamase2050 5 лет назад
mine pops up this error: TypeError: _co.createCode is not a function at Object.eval [as handleEvent]
@maximilianobisurgi9362
@maximilianobisurgi9362 7 лет назад
Hi, what theme or extensions are you using for your editor?
@sweetvibrations
@sweetvibrations 7 лет назад
Great tutorial
@hadeermohamed9672
@hadeermohamed9672 3 года назад
is it possible to link a scanned qr code link to mobile app ? how to ?
@galaxies_dev
@galaxies_dev 3 года назад
I'm not sure what you mean? If you want to open the app from a QR code, you could use a universal link which would then open the app if it's installed!
@redmibntt3437
@redmibntt3437 3 года назад
I can't create qrcode using your step
@noerherlambang4649
@noerherlambang4649 5 лет назад
Hi thx it works! btw I want to take the base64 from generated qrcode like the one that show on your console log,. How??
@galaxies_dev
@galaxies_dev 5 лет назад
I'm not sure? The base64 I printed out can be used in other ways as well of course! Or do yu want like the QR thing as an image?
@NabilMajid
@NabilMajid 5 лет назад
Hi, i have a doubt, the code generated by your QR/Code Reader and Generator--Cross Platform, can only be readed by your QR/Code Reader? or any Qrcode device can read?
@galaxies_dev
@galaxies_dev 5 лет назад
The created code is a general QR code and can be read by any device!
@tetri6611
@tetri6611 5 лет назад
Hello, do and of you know any resources that I can look at to save the qrcode that I have generated?
@galaxies_dev
@galaxies_dev 5 лет назад
hmm you might be able to show it inside a canvas and then convert it to a dataURL, then you can easily save it!
@mubarakthesimple
@mubarakthesimple 7 лет назад
Very nice and helpful.... Thanks a lot
@yourdailydoseofcode
@yourdailydoseofcode 5 лет назад
Cannot find module 'nqx-qrcode2
@umbertocristaldi5549
@umbertocristaldi5549 2 года назад
Thank you for video!!! Is there any way to download a generated QR Code?
@galaxies_dev
@galaxies_dev 2 года назад
You can convert the canvas to an image and then download it!
@polroti
@polroti 4 года назад
Can't bind to 'qrc-value' since it isn't a known property of 'ngx-qrcode'.
@galaxies_dev
@galaxies_dev 4 года назад
The component changed for v4!
@polroti
@polroti 4 года назад
@@galaxies_dev I found a fix! Instead of placing the import in app.module.ts, the module import should be mentioned in the page's module.ts. For example if its the homepage (home.page.html), then the import should be placed in the home.module.ts. This works for ionic 5.2.4 as of today. Node Version - 10.16.0 npm version - 6.9.0
@akashrajpurohit97
@akashrajpurohit97 6 лет назад
Great work...Just a question.. We scan the code by using Camera but is it possible to scan the QrCode by using a screenshot file of the qrcode... Such a thing happens to my default scanner app which is available in my mobile.. I can scan as well as choose a file from file system and get the result back from the qrcode.. Hope you see this question.. Yours newly subscriber :)
@pareshnandaniya1901
@pareshnandaniya1901 3 года назад
qrc-value mathi "qrc-" remove karvanu che
@ashoknaik5810
@ashoknaik5810 3 года назад
How to download generated Qr from ngx-qrcode
@galaxies_dev
@galaxies_dev 3 года назад
I guess you could add it to a Canvas and then create an image from there!
@wenghong1551
@wenghong1551 5 лет назад
after i connected it to an android device and when i pressed on “scan code”, the camera does not open. may i know how do i fix this?
@galaxies_dev
@galaxies_dev 5 лет назад
This depends on the error you see in the console. Perhaps some permissions are missing?
@Joshfw892
@Joshfw892 6 лет назад
Great work, thanks Simon!
@nikocreed8244
@nikocreed8244 3 года назад
you prolly dont give a shit but does anyone know of a way to get back into an Instagram account?? I stupidly forgot my login password. I would appreciate any help you can offer me.
@kysondawson8347
@kysondawson8347 3 года назад
@Niko Creed Instablaster ;)
@nikocreed8244
@nikocreed8244 3 года назад
@Kyson Dawson thanks so much for your reply. I got to the site thru google and Im trying it out now. Takes a while so I will get back to you later when my account password hopefully is recovered.
@nikocreed8244
@nikocreed8244 3 года назад
@Kyson Dawson It worked and I finally got access to my account again. I am so happy! Thank you so much, you saved my ass :D
@kysondawson8347
@kysondawson8347 3 года назад
@Niko Creed Glad I could help :)
@RanushkaLakmalSankalpa
@RanushkaLakmalSankalpa 7 лет назад
Error: Template parse errors: Can't bind to 'qrc-value' since it isn't a known property of 'ngx-qrcode'. 1. If 'ngx-qrcode' is an Angular component and it has 'qrc-value' input, then verify that it is part of this module. 2. If 'ngx-qrcode' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message. 3. To allow any property add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component. (" ][qrc-value]="createdCode"> Genarated this error!! please help
@manueloleaga1
@manueloleaga1 6 лет назад
I got the same...!
@ernestohernandezriva
@ernestohernandezriva 6 лет назад
I think that you may not added the NgxQRCodeModule to the imports NgModule (in the app.module.ts file)
@alvensarrosa5713
@alvensarrosa5713 5 лет назад
Just run: npm run build To generate all *.js, *.d.ts and *.metadata.json files >it works perfectly
@luizfdflores
@luizfdflores 5 лет назад
I'm having the same issue. Did you got it to work?
@vineetbelani
@vineetbelani 5 лет назад
I am having the same issues the ngx-qrcode on the page module and app.component.ts can someone help please
@fikri.abdoul
@fikri.abdoul 7 лет назад
thanks simon!
@thebigbrennanski
@thebigbrennanski 5 лет назад
Well done. Subscribing!
@jorgeeliecerfonsecaluna4488
@jorgeeliecerfonsecaluna4488 7 лет назад
Excelente! Muchas Gracias!
@Yvan15ize
@Yvan15ize 5 лет назад
exactly what we need to know :)
@TheHappyNova
@TheHappyNova 6 лет назад
I followed this guide but when I run it on device I get an error saying Uncaught (in promise): cordova_not_available. I get the same error when I run it in browser too. Any suggestions? I have tried uninstalling and reinstalling node.js, cordova and ionic.
@galaxies_dev
@galaxies_dev 6 лет назад
Are you running the app inside the ionic dev app? I also got this error recently with "ionic run ios -lc" so livereload did not work as expected. If you simple build the app for your platform and then deploy it it should work!
@TheHappyNova
@TheHappyNova 6 лет назад
Thats the solution I went with. I can build and deploy, but cant livereload. Just is a pain as I need to redeploy with every change!
@stellaang5712
@stellaang5712 6 лет назад
How did you get the base64 of the qrcode to be console.log()?
@galaxies_dev
@galaxies_dev 6 лет назад
I think it was actually logged by the package, but you could also try to grab the ViewChild and then take the src element which has the base64 string!
@stellaang5712
@stellaang5712 6 лет назад
Do you have a sample code for it?
@ton1kt0
@ton1kt0 6 лет назад
Are you using a public path for the img?
@israeloriente2442
@israeloriente2442 5 лет назад
how i can scan code in browser??? Cordova not support...
@galaxies_dev
@galaxies_dev 5 лет назад
Cordova plugins never work in the browser preview, only on a device.
@marcoscarvallho5660
@marcoscarvallho5660 7 лет назад
Excellent...
@brycebonilla9359
@brycebonilla9359 7 лет назад
Now what if Instead of the simple one line answer to be put in the QR code, how about a series of questions? like multiple inputs
@nolbertoamador8854
@nolbertoamador8854 7 лет назад
concatena tus respuestas
@AluisioBenigno
@AluisioBenigno 5 лет назад
Video Great Simon, tetapi bisakah Anda membuat contoh dengan Ionic 4?
@galaxies_dev
@galaxies_dev 5 лет назад
Sorry, I don’t understand that language :/
@AluisioBenigno
@AluisioBenigno 5 лет назад
@@galaxies_dev I'm so sorry. but can you make an example with Ionic 4?
@atomicode7588
@atomicode7588 6 лет назад
i have this error: Cordova_not_available. help me please...
@kamehameha22
@kamehameha22 6 лет назад
That mean cordova is only available in the actual mobile device
@HeiinRogue
@HeiinRogue 6 лет назад
thanks !
@krishnakantgaud5287
@krishnakantgaud5287 5 лет назад
Hey, I liked this tutorial it was awesome.. I can suggest you to make a video on how to build APK file from ionic 4 project.
@galaxies_dev
@galaxies_dev 5 лет назад
Well you basically only have to run "ionic cordova build android" from your command line!
@calebadeleye
@calebadeleye 5 лет назад
i keep getting errors when trying to install cordova
@galaxies_dev
@galaxies_dev 5 лет назад
Have you installed Cordova correctly? Perhaps your Android SDK is missing?
@calebadeleye
@calebadeleye 5 лет назад
@@galaxies_dev I cleared my NPM cache and it worked. Thanks for your response. BTW could you please do a tutorial on how to tackle CORS issue when using the Http.post() . this is giving me headache at the moment
@adrianvisnovsky1719
@adrianvisnovsky1719 6 лет назад
I have this error imgur.com/a/Fueqq I'm newbie in ionic, please help me
@rnrmmb5060
@rnrmmb5060 5 лет назад
object (...) is not a function in ionic 3
@galaxies_dev
@galaxies_dev 5 лет назад
Then perhaps you haven't installed the plugin accordingly
@rajeshtank4146
@rajeshtank4146 4 года назад
What all plugins do you mean by this??
@ricardomachado4018
@ricardomachado4018 4 года назад
Hi... Dont working 😤😌
@shubhamdutta2868
@shubhamdutta2868 6 лет назад
thnx fr d help
@chrisik100
@chrisik100 6 лет назад
Ionic it's entire facepalm...
@yourdailydoseofcode
@yourdailydoseofcode 5 лет назад
ngx-qr code' is not a known element
@galaxies_dev
@galaxies_dev 5 лет назад
Check out the Github page of the package, perhaps the include has changed! i'm also working on a new video on that topic.
@yourdailydoseofcode
@yourdailydoseofcode 5 лет назад
@@galaxies_dev Already found the error
@saikinotes7799
@saikinotes7799 5 лет назад
Thankyou for this tutorial but unfortunately my project got deleted, then when i tried to create ionic project again, Ionic 3 was no longer available, my cli goes to cli 4 and ionic 4 already so that the components itself and the syntax itself was totally different its not applicable and adaptable to this tutorial you provided. please help me :(((
@xreme
@xreme 5 лет назад
looking on google I found this:
@xreme
@xreme 5 лет назад
www.freakyjolly.com/ionic-4-add-barcode-qr-code-scanner-encoder-ionic-4-native-plugin/?fbclid=IwAR1ov9czLOfFERUsECD0Z8DR_e6cAHNH5N92wVKyNG9OtRCziIK75lcg_Xg
@xreme
@xreme 5 лет назад
works very well on the device, for ionic 4
@xreme
@xreme 5 лет назад
some problem reinstall: $ ionic cordova plugin add phonegap-plugin-barcodescanner $ npm install @ionic-native/barcode-scanner
Далее
We Built an App in 24 Hours [No Code]
11:56
Просмотров 424 тыс.
Wife habit 😂 #shorts
00:16
Просмотров 62 млн
Can You Bend This Bar?
01:00
Просмотров 3,9 млн
拉了好大一坨#斗罗大陆#唐三小舞#小丑
00:11
How to Read and Create QR Codes with Ionic 4
17:30
Просмотров 37 тыс.
Ionic Caching Service
18:12
Просмотров 19 тыс.
QR Code and Barcode Scanner in Ionic 3
14:26
Просмотров 40 тыс.
13 Things To Remove From Your Website Immediately
12:33
How to Combine Ionic Side Menu and Tabs Navigation
25:46
React Native vs Flutter - Which should you use?
22:31
5 React Native Tips to WOW Your Users
16:36
Просмотров 21 тыс.
Custom Ionic Splash + Animation
5:29
Просмотров 176 тыс.
Wife habit 😂 #shorts
00:16
Просмотров 62 млн