You can use Pic2Shop…
Here is what you would place in the build.settings under the iphone -> plist
CFBundleURLTypes =
{
{
CFBundleURLName = "com.Example.yourapp",
CFBundleURLSchemes =
{
"yourapp",
}
}
}
Change yourapp to something else.
Place this somewhere like on a button press.
system.openURL( "pic2shop://scan?callback=yourapp%3A")
Again, change yourapp to what ever you chose in the build.settings.
You will need this as well…
local function onSystemEvent( event )
if event.type == "applicationOpen" and event.url then
launchURL = event.url
print( launchURL )
local testA = string.find ( launchURL, "=" )
if tostring(testA) ~= "nil" then
barCodeFinal = string.sub ( launchURL, testA + 1 )
end
end
end
It isn’t an elegant solution, but it will give your app QR and barcode scan capabilities. [import]uid: 10280 topic_id: 36063 reply_id: 143284[/import]