Is that your entire build.settings?
Rob, I see your point. I was missing the outer settings brackets. All good now. -Thanks
i’ve already activated QR scanner plugin by spiral code studio. But as i ran the sample project provided it display " the ‘plugin.qrscanner’ library is not available on this platform."
How to fix this??
Izham
Plugin’s can take a few hours to catch up. Are you still having the issue?
Can you also post your build.settings?
Are there more messages in the terminal window?
Rob
Yes, I’m still having this issue. Below is the build.settings and the terminal window:
settings = { orientation = { default = 'portrait', supported = {'portrait', 'portraitUpsideDown'}, }, iphone = { plist = { CFBundleIconFile = 'Icon.png', CFBundleIconFiles = { 'Icon.png', 'Icon@2x.png', 'Icon-60.png', 'Icon-60@2x.png', 'Icon-60@3x.png', 'Icon-72.png', 'Icon-72@2x.png', 'Icon-76.png', 'Icon-76@2x.png', 'Icon-Small.png', 'Icon-Small@2x.png', 'Icon-Small@3x.png', 'Icon-Small-40.png', 'Icon-Small-40@2x.png', 'Icon-Small-50.png', 'Icon-Small-50@2x.png' } } }, plugins = { ['plugin.qrscanner'] = {publisherId = 'com.spiralcodestudio'} } }
Have you tried building for a device yet?
Rob
I havent integrate it in my app yet. I’m just trying the sample project provided through emulator.
maybe i should try it in my app and try it on a device. Thank you Rob.
Izham
You can always wrap your code that is device only in an “if” statement that tests if you’re on the simulator or not.
if "simulator" ~= system.getInfo("environment") then -- do device specific stuff end
Rob
Hi Rob,
Honestly, I am new to corona. I ran into a runtime error when i tried to run my app on my phone. It display as below:
really hope to hear from you soon. thank you.
Izham
Its ok, that is no longer an issue. Now focusing back on the QR scanner. I’ve a question, can corona generate the qr code? What I mean is that the information of qr code is within the app that I’m developing instead of it act as “link”. Is it possible??
Izham
I suppose that you could come up with an algorithm to generate one and create a bunch of display.newRect()'s for each pixel in the code, but it would be far easier to use a native.newWebView() and have one generated on line.
Rob