web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / ScanBarcode() autofocu...
Power Apps
Unanswered

ScanBarcode() autofocus bug on iPad

(1) ShareShare
ReportReport
Posted on by 58

I built a barcode scanner that runs fine on my Galaxy Note 8, but on my classroom iPad (4th Gen) with iOS 10.3.3 installed. I'm hitting a bug I think. My app is designed to scan/enter two seperate barcodes into two separate text input controls before I patch them. Both scans are triggered by two separate buttons. The bug always occurs on my 2nd scan, the iPad loses its autofocus and I can't scan a rather long barcode. Autofocus always works on the first scan, regardless of which button is pressed, but then it stops working afterwards.

Categories:
I have the same question (0)
  • v-micsh-msft Profile Picture
    on at

    "

    Both scans are triggered by two separate buttons. 

    "

    Could you please explain a bit for the setup of the triiger?

    Is the following article that you have followed to implement it?

    Create a barcode scanning app in minutes!

     

    Besides, could you please take a try to upgrade the IOS Version to the current version 11.4.1?

    For testing purpose, if possible, find a testing device to test that before upgrading the production one.

     

    Regards,

    Michael

  • AndrewFitz Profile Picture
    58 on at
    Hi Michael, here are my two buttons:
     
    Button for scanning student ID: OnSelect=UpdateContext( {StudentID: ScanBarcode() } )
    Button for scanning Instrument Barcode: OnSelect=UpdateContext( {InstrumentBarcode: ScanBarcode() } )
     
    Both the StudentID and InstrumentBarcode are then patched to a Sharepoint list. Scanning twice and autofocus works fine on my Note8 phone and my wife's iPhone running iOS 11.4.1.
     
    Apple doesn't support iOS 11 on a 4th gen iPad, so I all get on my classroom iPads is 10.3.3
  • ashketchum Profile Picture
    on at

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard