QR Code Scanner Widget

Follow

Comments

25 comments

  • Avatar
    kieron

    Hi sarahlynnbr,

    Thanks for that, we'll take a look when we a chance

  • Avatar
    mackenzy

    Hi, last year I created an app that makes use of the QR code scanner button and was working perfectly on my iphone. A year later, I tested my app and when I click on the same button, I can not access the camera anymore to scan the QR code. I deleted the app from the phone and re-downloaded again but the problem persists. What is even more strange is that if I try the preview tool on my mac everything works fine, but when I try on my iPhone that (yes, I did update the app) then the camera view does not appear anymore as before. How can I make it work as before?

    Thanks! A.

  • Avatar
    kieron

    Hi mackenzy,

    Could you tell us what version of iOS are you running and what kind of iPhone you're using?

    Also, is there any additional JavaScript in your app to activate the QR codes, or are you just using the QR Code widget?

    Thanks

  • Avatar
    mackenzy

    Hi, iPhone 4, running latest ios software (7.1.1), and no, I am not running any additional javascript in the app. Thank you v much in advance! 

  • Avatar
    mackenzy

    Hi Kieron, do you know what can solve the problem?

  • Avatar
    bigbills

    Hi,

    I'm currently using the free trial and I'm seriously considering a subscription. I have a couple of questions and I wonder if you can help me?

    I created a QR code with some information in it including a particular date. When scanned, it shows the page and the specific date. Can I add this date (or any particular date that I put into the QR code) to the calender on my iphone? Thus setting a reminder or even an alarm?

     

    kind regards,

    Martin

  • Avatar
    kieron

    Hi mackenzy,

    Sorry for the delay - could you give me your App ID (the number at the end of the URL when editing your app)? I'll make a copy of your app and take a look

  • Avatar
    kieron

    Hi Martin,

    This kind of functionality isn't something we'd officially support, as it's not part of the core functionality of AppFurnace, so we'd usually recommend looking at the PhoneGap API yourself and trying to find a solution that works with AppFurnace that way. But, as far as I'm aware, PhoneGap doesn't allow direct interaction with the calendar without third-party plugins (that seem to only be available for Android anyway) - which means that we couldn't guarantee that it would work in current or future versions of AppFurnace.

    Of course, there's nothing stopping users adding an event themselves - but obviously that's not as easy as a button tap would be.

    Sorry I couldn't be more help here

  • Avatar
    Thiago Carneiro
    Hello , how do I read my QR Code to open a link in Google Drive?
  • Avatar
    kieron

    Hi Thiago,

    If you follow the tutorial above, and instead of entering a value for the "Navigate To" field, but add "openWebPage" to the function. Then in your Code tab, paste this:

    function openWebPage() {
        af.childBrowser.showWebPage("http://www.google.co.uk");
    }

    Replacing the URL in the brackets with a link to your document. With Google Drive, you'd have to make sure your document was public to the web on Drive - this guide from Google Drive may help get you started: https://support.google.com/drive/answer/2494886?hl=en

    Hope that helps

  • Avatar
    Michele Brouse

    Do you have the code for me to tell the app when a QR code is scanned to load into a new contact on the phone? The QR code will have first name, last name, title, company, address, city, state, country, phone and email address.  I'd like the notes section to open too.  

  • Avatar
    kieron

    Hi Michelle,

    I've responded to your question in the related thread you posted here: https://appfurnace.zendesk.com/entries/78261159-QR-code-to-vcard?page=1#post_28349685

    Thanks

  • Avatar
    donnyBronson

    Hi Calvium peeps.

    Here is a Q. Once I've opened the barcode scanner using af.barcodeScanner.scan is there a way to close it again? I want to set a time out on that screen so that It closes the scanner and returns to the home screen if no one scans a code for x seconds. I've had some help from Tom on the timing and events issue. It seems like the scanner grabs hold though, and nothing i'm doing in my script happens until the scanner closes again.

    Let me know

  • Avatar
    kieron

    Hi,

    The scanner does take control of the interface once opened, until a user either attempts to scan a code, or taps the close (X) button at the bottom of the scanner screen. There's no way to programmatically override this behaviour though.

  • Avatar
    duncanspeakman

    hi,

    is there any way to turn off the beep (and vibrate actually on one device) that occurs on a successful scan? thanks, duncan.

  • Avatar
    bitterjay

    Is there any way to open the URL through an outside application (ie chrome or safari?)

  • Avatar
    duncanspeakman

    looks liked Calvium stopped checking this forum in february :( 

    maybe post your question in the general forum?

  • Avatar
    kieron

    Hi,

    We're still watching this forum - our monitoring notifications may have got lost for your last question, so apologies for that. There isn't a way to alter the default QR Scanner behaviours like beeping in AppFurnace though, no.

    bitterjay - once you've scanned the code and the child browser opens the page, a user can then choose to then open the page in another browser with the top-right button - but there's not a way to force this to open externally on scan.

    Hope that helps

  • Avatar
    MyStrain

    We generates QR Codes for retailers to place on their products which redirect customers to their profiles on our site. It involves thousands of codes (too many to manually register). Is it possible for the widget to function as a general QR reader or must the codes be registered to redirect to their url?

  • Avatar
    kieron

    Hi,

    You can use the QR Code Scanner more generally, by adding a QR code to the manager as usual, but setting the "Content" field as empty - which catches "all other codes". Then, you can handle the code passed in with whatever function you want. If the QR code you're scanning contains a website, you could do something like this:

    function openWeb( url ){
    af.childBrowser.showWebPage( url );
    }

    And the website would open when you scanned.

    Hope that helps.

  • Avatar
    Josenpt

    Hi,

    Sorry I do not have much knowledge of javascript.
    I have done this test but is not visible url QR code in the browser, can you help me?
    Tk.

     

    function openWeb( url ){
    af.childBrowser.showWebPage( url );
    }
  • Avatar
    kieron

    Hi,

    Could you explain the problem a bit more please? What isn't visible that you're expecting to see. Could you let me know which step in the tutorial above that it going wrong?

    Thanks

  • Avatar
    Josenpt

    Hi,

    Thank you very much for your answer, I tell you that my javascript skills are insufficient.

    I need to create a button to read any qr code and be redirected to each url of qr codes.

    I tried it with:

    function openWeb( url ){
    af.childBrowser.showWebPage( url );
    }


    And if it works, I open the browser but does not appear the url scanning qr code.

    It is quite possible to need add some javascript line to be redirected to the URL of scanning qr code?

    Thanks

  • Avatar
    kieron

    Hi,

    The process for making non-specified QR codes work is:

    1. Add a QR Code widget to the Layout
    2. Click the widget and click the "Manage QR codes" button
    3. Click the Add button
    4. Click on the "my code content" to edit it, and delete all content, and click away from the field
    5. The line should change to "(Any other QR code)"
    6. Enter "openWeb" in the function column
    7. Click OK
    8. If you haven't added the function to the Code tab, do that now. You should only have one occurance of the openWeb function in your code.
    9. Find an online QR Code generator (e.g. http://www.qr-code-generator.com/) and enter a full URL, to generate the code. This must be a full URL, including the protocol (e.g. "http://") at the start
    10. Get your app on your phone (this won't work in Online Preview), and scan the code you've just generated
    11. The website should load, as expected

    If these steps don't work, let me know, along with the app number (number at the end of the address bar when editing your app), the device you're testing on, and the operating system version it's using.

    Hope that helps.

  • Avatar
    Josenpt

    Hi Kieron,

    Thank you very much, it is solved !!!

Please sign in to leave a comment.

Powered by Zendesk