Hello,
I am going to purchase Corona Enterprise SDK and need to enable NFC functionality in my app. Has anyone used this technology before and can offer any advice? Sorry for such a general and broad question.
Hello,
I am going to purchase Corona Enterprise SDK and need to enable NFC functionality in my app. Has anyone used this technology before and can offer any advice? Sorry for such a general and broad question.
One thing to be aware of that Lua doesn’t have an integer type. All numbers are double floats. If NFC is like Bluetooth, you may need to do bit manipulation which will need to be considered.
that can be solved with a type cast at the java level though correct?
Probably. Also it depends on how much work you expect to be done on the Java side vs. the Lua side. For instance, for a bar code scanner, you can try to pass the raw data back to Lua and do calculations on it, or you can just send back the data (product ID for a bar code, URL for a QR code, etc.)
In this case if you’re plugin is telling NFC to return more simple data as the result of the NFC transaction it might be better than sending a 32 bit integer of mask bits back to Lua.
That is what I am going for, are there any good tutorials I can follow on making corona plugins? Can I use a 30 day trial of the enterprise software to immediately start development?
We did an Android Enterprise tutorial a few weeks ago. I don’t know that it covers making a plugin, but there’s several examples in the samples folder when you install Enterprise. But it may not need to be a plugin.
Rob
Rob,
Is NFC supported only for Enterprise users or can be done at any any level ?
i am planning to work in a project to read from NFC tags. If they are not supported , is there any workaround i can do ?
Thanks
Abdul
Let me qualify it.
Corona SDK does not support NFC. We have no built in API’s for it. There is not an existing plugin for SDK users that I’m aware of.
Enterprise will probably work because I suspect that there is a drop-in native library for this and any lower level functionality could be done on the Native side. Enterprise will allow you to return strings and such back to your Lua code.
Rob
Thanks Rob for the clarification. So there is no plans to do api for this purpose . I think I saw some voting for this feature.
Abdul
I don’t want this to come off as a “never” issue, but for right now, this is a feature that benefits a smaller portion of our customer base. There is now a 3rd party plugin market place where you could get someone to build a plugin for you.
Rob
Rob,
Do you mean i should i request for this plugin to be built or you have some specific plugin you advice me to look at ?
Thanks
Abdul
You would need to request the plugin be built, which I see you did in Gremlin’s plugin post.
Rob
i see. thanks for this quick answer… i saw someone who request that plugin so i support them let us see if something can be done quickly,
Abdul
which type of barcode scanner
One thing to be aware of that Lua doesn’t have an integer type. All numbers are double floats. If NFC is like Bluetooth, you may need to do bit manipulation which will need to be considered.
that can be solved with a type cast at the java level though correct?
Probably. Also it depends on how much work you expect to be done on the Java side vs. the Lua side. For instance, for a bar code scanner, you can try to pass the raw data back to Lua and do calculations on it, or you can just send back the data (product ID for a bar code, URL for a QR code, etc.)
In this case if you’re plugin is telling NFC to return more simple data as the result of the NFC transaction it might be better than sending a 32 bit integer of mask bits back to Lua.
That is what I am going for, are there any good tutorials I can follow on making corona plugins? Can I use a 30 day trial of the enterprise software to immediately start development?
We did an Android Enterprise tutorial a few weeks ago. I don’t know that it covers making a plugin, but there’s several examples in the samples folder when you install Enterprise. But it may not need to be a plugin.
Rob
Rob,
Is NFC supported only for Enterprise users or can be done at any any level ?
i am planning to work in a project to read from NFC tags. If they are not supported , is there any workaround i can do ?
Thanks
Abdul