K Keith Yong Active Member Licensed User Longtime User May 17, 2018 #1 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
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
Erel B4X founder Staff member Licensed User Longtime User May 17, 2018 #2 Please use [code]code here...[/code] tags when posting code. Have you added the PlistExtra line to your code? Upvote 0
Please use [code]code here...[/code] tags when posting code. Have you added the PlistExtra line to your code?
K Keith Yong Active Member Licensed User Longtime User May 17, 2018 #3 yes, i'm using the sample code given in the following link to run on iPhone X. FYI, the code works for iPod but not in iPhone X https://www.b4x.com/android/forum/threads/ibarcode-library.47354/ Upvote 0
yes, i'm using the sample code given in the following link to run on iPhone X. FYI, the code works for iPod but not in iPhone X https://www.b4x.com/android/forum/threads/ibarcode-library.47354/
Erel B4X founder Staff member Licensed User Longtime User May 17, 2018 #4 Do you see the authorization question when you run the program? As a test, try to run it with a different package name. Upvote 0
Do you see the authorization question when you run the program? As a test, try to run it with a different package name.
K Keith Yong Active Member Licensed User Longtime User May 17, 2018 #5 When i run the program, i only get the message "Error starting scanner" in the Scanner_Ready routine. Attachments Screen Shot 2018-05-17 at 10.40.32 PM.jpg 26.6 KB · Views: 199 Upvote 0
When i run the program, i only get the message "Error starting scanner" in the Scanner_Ready routine.
Erel B4X founder Staff member Licensed User Longtime User May 17, 2018 #6 Are you testing it on a real device? Upvote 0
K Keith Yong Active Member Licensed User Longtime User May 18, 2018 #7 Sorry. my bad. now is working after testing on the real advice. Thanks Upvote 0
Erel B4X founder Staff member Licensed User Longtime User May 18, 2018 #8 This is a good example of a question without all the relevant information... Upvote 0