QR Scanner

Plugins take time to make. Unfortunately apple and android like to make breaking changes. Developers should not be chained to a free plugin they have to support. Corona did not support paid plugins a year ago, did you want lerg not release his qr plugin and wait a year?

Is this some kind of would-you-rather-never-have-met-your-girlfriend-than-meet-her-and-then-break-up question?  :wink:

My frustration boils down to the fact that I wasn’t aware that the only reason these plugins were free was that the payment system was not ready. Was this really obvious to everybody except me? There’s thousands upon thousands of good programmers out there that contributes for free in different ways so was it  that far fetched that this could have been the case here also?

Also it’s not obvious to me why some plugins are free and some are not. It’s difficult for me to know how many more hours of work the Text to Speech plugin (gonna cost $20 a year) was compared to the vibrator plugin (free).

And for the fifth time: While it’s great that some do stuff for free it’s also ok by me that some want’s to make money from their stuff. 

I kinda expected the paid-plugin from the start, as ‘donations’ won’t be much to compensate for the time spent. I donated some money when it was launched. I added my own QR scanner feature in Enterprise, and it wasn’t an easy job. Lots of time was spent testing and aligning (especially the camera portion on Android & iOS ).

So, $20/year for continous improvement is worth it. I am using this QR-plugin for SDK project (which doesn’t use Enterprise cause it is easier/faster to build). Looking forward for more features, such as changing top-bar-color from Serg.

Will an installed app using the QR plugin continue to function if the QR plugin subscription expires? 

boscotwcheung, yes, it will. All successfully built app binaries will continue to work and install fine.
If you want to build an app again (e.g. a new app or an update for an old app) you will need a subscription.

Can you add an option to support landscape mode?

Now even in landscape mode the camera will always show up in portrait mode

contact801, that sounds like a bug. Landscape mode is supported and I’ve just tested it on Android and iOS.
What device do you have and OS, what Corona version and what build.settings?

Lerg,

I think I found out the issue. For reference this is my setup.

iOS SDK is 9.3

Copyright (C) 2009-2016  C o r o n a   L a b s   I n c .                     Version: 3.0.0                     Build: 2016.2951

build.settings

orientation = { default = "landscapeRight",         supported = { "landscapeLeft", "landscapeRight" }, },

it wont start up in landscape on either Android or iOS. 

Which is where the issue is. If I add portrait mode to my settings it will rotate to the correct landscape, but without a portrait settings it won’t, by the way my game is landscape only. So I guess it could be said there is a bug in the plugin as not all games must support portrait. Any ETA for a fix?

contact801, I don’t see the issue. Maybe there is some typo in your build.settings?

I have iPod with iOS 9. If I set orientation to landscape (left and right), the QR Scanner window shows also in landscape.

Can you make a small project that demonstrates the problem and maybe record a video of the wrong behavior?

Hello, I have some issues reading coloured QR codes. If QR code is different color of black the plugin does not recognize the code or the reading is very slow. Some fix for that?

Where can I find plugin of qrscanner for enterprise.

I cannot find one in this link : https://bitbucket.org/account/user/coronalabs/projects/STORE

Please send me your Corona email as a private message.

Are there some new changes in the API or something? I updated the Corona Simulator (3012) and now I cannot make the plugin work… 

I’m calling the scanner as I’ve “always” done:

 qrscanner.show(qrListener, { symbols = { 'qr' }, strings = { title = s.str("Scan the QR code!")} })

But absolutely nothing happens.

Android 7.1.1 / Nexus 6P

To follow up myself:

I have also tested this on a tablet running Android 5.1.1 and on that device it works.

To my understanding it is (at least) the combo of Android Nougat (7) and the latest Corona SDK that breaks this plugin.

Could you please look into it?

I have now also tried the QR Scanner plugin with a pnone running Android 6.0.1 and it works also there.

Am I the only one having problems with Android 7(.1.1) and this plugin?

runewinse, please provide logcat of the failure. I don’t have Android 7 devices around yet, can’t test by myself at the moment.

You could test on android studio emulator on mac and run 7.0. Trying to get a test device for every version android is tough.

Ok attached is the results from a Corona logcat (adb.exe logcat Corona:v *:s) and a complete logcat (adb.exe logcat). Not sure that it sheds any light, though, since there is not much info (at least to my eyes) there.

I don’t think andriod emulator provides camera.

runewinse, yeah, nothing in the log. So there is no runtime error or anything. That is the sample you are running, right?