MergZXing and iOS 8

This is the place to get technical support and discuss all things to do with MergEXT

Moderators: Klaus, FourthWorld, heatherlaine, robinmiller, monte

MergZXing and iOS 8

Postby JacobS » Wed Jan 14, 2015 11:20 pm

Hi forums/Monte,

I've come across two issues with MergZXing 1.2.5 in conjunction with iOS 8.

First, when I call the function mergZXingGetBarcode() I am unable to cancel out of the scan. The cancel button is visible, but when I press it nothing happens.
Second, after about 1 minute the app crashes if nothing has been scanned. I'm not entirely sure if this is an issue relating to the iPad locking itself after 1 minute or an issue with the external.

Does anyone have any tips on how to solve this?
Monte, am I doing something wrong with iOS 8? Or is this a known issue?

Thanks so much!
-Jacob
JacobS
 
Posts: 56
Joined: Mon Aug 20, 2012 8:41 pm
Location: Indiana, United States

Re: MergZXing and iOS 8

Postby monte » Thu Jan 15, 2015 3:23 am

Hi @JacobS

It's not a known issue and I'm having trouble replicating the problems on iOS 8. Do you get the same issues with the demo stack?

Cheers

Monte
LiveCode User Group on Facebook : http://FaceBook.com/groups/LiveCodeUsers/
monte
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
 
Posts: 1558
Joined: Fri Jan 13, 2012 1:47 am

Re: MergZXing and iOS 8

Postby JacobS » Thu Jan 15, 2015 4:26 pm

Thanks for the reply Monte,

Yes, I have the same issue with the example stack that I just downloaded from mergext.com. As another note, I also am unable to successfully click the "i" button in the bottom-right corner of the screen on iOS 8, even though it works perfectly fine in iOS 6.
I'm using iOS 8.1.2, LiveCode 7.0.1 Build 10023 and MergZXing 1.2.5.

This is a screenshot of the scanner on iOS 6
Image

And this is on iOS 8
Image

And this is the code I'm using:
Code: Select all
on mouseUp   
   mobileBusyIndicatorStart "square","Starting Scan..."
   put mergZXingGetBarcode() into tBarcode
   if tBarcode contains "user cancelled" then
   else
      set the text of field "newName" to tBarcode
   end if
   mobileBusyIndicatorStop
end mouseUp

*I've also tried this without the mobileBusyIndicatorStart to see if that command was screwing things up, but it still didn't work.

Do these look the same as what you're expecting? I'm really not sure what to do to solve this if it works fine for you!

Thanks again,
Jacob
JacobS
 
Posts: 56
Joined: Mon Aug 20, 2012 8:41 pm
Location: Indiana, United States

Re: MergZXing and iOS 8

Postby monte » Thu Jan 15, 2015 11:45 pm

Hmm is that on an iPad? Perhaps it's an iPad issue. BTW have you tested on iOS 8 against LiveCode 6.6.5 or 6.7.1? I usually test against those because LC 7 still has some issues.
LiveCode User Group on Facebook : http://FaceBook.com/groups/LiveCodeUsers/
monte
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
 
Posts: 1558
Joined: Fri Jan 13, 2012 1:47 am

Re: MergZXing and iOS 8

Postby JacobS » Fri Jan 16, 2015 1:15 am

Yeah, it's on an iPad. I'll check it out with other versions of LiveCode. Thanks for the tip.

-Jacob
JacobS
 
Posts: 56
Joined: Mon Aug 20, 2012 8:41 pm
Location: Indiana, United States

Re: MergZXing and iOS 8

Postby JacobS » Fri Jan 16, 2015 2:59 pm

Hi Monte,

Yes, I run into the exact same problems even if I use LiveCode 6.7.1. I still am unable to click the cancel button and after about ~1 minute the app crashes if nothing is scanned.
But, when I tested mergZXing on an iPhone running iOS 8 with LiveCode 7.0.1 it works perfectly fine! I'm really surprised that it works on an iPhone but not an iPad.

Another interesting thing I found was that when I did the following steps (on an iPad):
1. Load barcode scanner
2. Hit the "cancel" button
3. Lock the iPad
4. Unlock the iPad
Then the iPad unlocks with the barcode scanner closed with the "mergZXing: user cancelled" message. If I don't hit the "cancel" button in step 2, then when the iPad unlocks, the barcode scanner is still open.

I'm really surprised that this happens. It makes me think that the cancel button's messages to the engine are maybe being cut off somewhere and then are let through when the iPad locks. Is this anywhere on track with what you think is happening?

Thanks.
-Jacob
JacobS
 
Posts: 56
Joined: Mon Aug 20, 2012 8:41 pm
Location: Indiana, United States

Re: MergZXing and iOS 8

Postby monte » Mon Jan 19, 2015 5:48 am

OK, I'll try and track down the problem. I'm in the midst of 64 bit build dramas at the moment so it might be a week or so before I can resolve it.
LiveCode User Group on Facebook : http://FaceBook.com/groups/LiveCodeUsers/
monte
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
 
Posts: 1558
Joined: Fri Jan 13, 2012 1:47 am

Re: MergZXing and iOS 8

Postby vikkysingh » Mon Jan 19, 2015 12:02 pm

Look forward Monte!
vikkysingh
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
 
Posts: 13
Joined: Fri Dec 31, 2010 8:13 am

Re: MergZXing and iOS 8

Postby JacobS » Mon Jan 19, 2015 4:58 pm

Thanks so much, Monte. Looking forward to hearing what you find out!

-Jacob
JacobS
 
Posts: 56
Joined: Mon Aug 20, 2012 8:41 pm
Location: Indiana, United States

Re: MergZXing and iOS 8

Postby JacobS » Wed May 06, 2015 5:14 pm

Hi Monte, did you ever make any progress on this? I'm still having the issue with MergZXing 1.2.11.

-Jacob
JacobS
 
Posts: 56
Joined: Mon Aug 20, 2012 8:41 pm
Location: Indiana, United States

Re: MergZXing and iOS 8

Postby monte » Thu May 07, 2015 1:26 am

Sorry Jacob

This issue must have slipped off my radar with the 64 bit issues I was dealing with at the time. Was a huge headache. I'll take another look but there's a limited amount I can do with ZXing these days. Just between you and me I'll be doing the builds but ZXing will be deprecated when I announce the 8.3 builds because I will also release barcode reading for the mergAV camera control. It's heaps faster and ZXing for iPhone is no longer maintained as part of the ZXing project so it's inevitable we shift over to mergAV. However there won't be an equivalent of the getBarcode function so you need to design your own dialog.
LiveCode User Group on Facebook : http://FaceBook.com/groups/LiveCodeUsers/
monte
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
 
Posts: 1558
Joined: Fri Jan 13, 2012 1:47 am

Re: MergZXing and iOS 8

Postby monte » Thu May 07, 2015 4:36 am

Hi Jacob

I've reviewed the code again and can't see any reason for the issue. It's not doing anything different on iPad to iPhone and should behave the same way. Can you let me know if you still experience this with the new version I'm about to release.

Cheers

Monte
LiveCode User Group on Facebook : http://FaceBook.com/groups/LiveCodeUsers/
monte
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
 
Posts: 1558
Joined: Fri Jan 13, 2012 1:47 am

Re: MergZXing and iOS 8

Postby JacobS » Thu May 07, 2015 1:48 pm

Hi Monte,

Thanks for the update.

It's still not behaving as expected on iPads. It works pretty much the same as before. I still can't press the cancel or information button. The crash after 1 minute of not scanning a barcode doesn't happen anymore, so that's nice.

I'm using XCode 6.2 and LC 7.0.4. Testing on an iPad 3 running iOS 8.3. Are these the versions that you recommend using?

Thanks.
Jacob
JacobS
 
Posts: 56
Joined: Mon Aug 20, 2012 8:41 pm
Location: Indiana, United States

Re: MergZXing and iOS 8

Postby monte » Fri May 08, 2015 1:46 am

It should work with all versions. It seems something has happened on iPads in iOS 8 with the way the button actions are handled but googling doesn't turn anything up about what that might be. For now I think your best bet is to design your own modal interface using mergAV on iOS and mergZXing on android.
LiveCode User Group on Facebook : http://FaceBook.com/groups/LiveCodeUsers/
monte
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
 
Posts: 1558
Joined: Fri Jan 13, 2012 1:47 am


Return to MergEXT

Who is online

Users browsing this forum: No registered users and 1 guest