Closed tylervz closed 6 years ago
Ok, apologies for error in documentation. Why do you want it to be an Array if you don't mind me asking?
If an array was being returned I would be able to tell whether an NFC reader just connected or whether one disconnected, based on the size of the array. Right now I'm getting the same result when the reader connects and when it disconnects, so I cannot notify the user "An NFC reader just connected" and "No NFC readers are connected".
let communicationStatus = updatedDevices["Communication Status"]
Will tell you the status of the connect device.
0 means disconnected
1 means connected but not polling for tags
2 means connected and polling for tags
Are you sure that's right? I'm getting 0 when the reader connects and I'm getting 2 when I turn off my phone's bluetooth.
When I inspected the callback of
addConnectedDevicesListener
using Safari , I discovered that the result was an object instead of an array.I would like to have it return an array, like the README states. I am using the
master
branch of this plugin.