Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building 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.

  • ashketchum Profile Picture
    on at
    ScanBarcode() autofocus bug on iPad
  • AndrewFitz Profile Picture
    58 on at
    Re: ScanBarcode() autofocus bug on iPad
    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
  • v-micsh-msft Profile Picture
    on at
    Re: ScanBarcode() autofocus bug on iPad

    "

    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

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,537 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,908 Most Valuable Professional

Leaderboard