iOS Question Barcode scanner with iPhone X

Discussion in 'iOS Questions' started by Keith Yong, May 17, 2018.

  1. Keith Yong

    Keith Yong Active Member Licensed User

    Hi, i'm using iPhone X and when i initialize the scanner, the following code doesn't return success as True. May i know how can i resolve this problem?

    Sub Scanner_Ready (Success As Boolean)

    btnStart.Enabled = Success

    btnStop.Enabled = False

    If Success = True Then

    hd.ToastMessageShow("Ready to start", False)

    Else

    hd.ToastMessageShow("Error starting scanner", True)

    End If

    End Sub
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    Please use [code]code here...[/code] tags when posting code.

    Have you added the PlistExtra line to your code?
     
  3. Keith Yong

    Keith Yong Active Member Licensed User

  4. Erel

    Erel Administrator Staff Member Licensed User

    Do you see the authorization question when you run the program? As a test, try to run it with a different package name.
     
  5. Keith Yong

    Keith Yong Active Member Licensed User

    When i run the program, i only get the message "Error starting scanner" in the Scanner_Ready routine.
     

    Attached Files:

  6. Erel

    Erel Administrator Staff Member Licensed User

    Are you testing it on a real device?
     
  7. Keith Yong

    Keith Yong Active Member Licensed User

    Sorry. my bad. now is working after testing on the real advice. Thanks
     
  8. Erel

    Erel Administrator Staff Member Licensed User

    This is a good example of a question without all the relevant information...
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice