-
Notifications
You must be signed in to change notification settings - Fork 556
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JSON Error - when attempting to share a tag #58
Comments
This method signature is correct. The documentation needs to be clarified. nfc.write and nfc.share only write one NdefMessage, but an NdefMessage is an array of NdefRecords. Helper methods like ndef.textRecord create a new NdefRecord, but a message is one or more NdefRecords, so the method takes and array of records. |
Created #59 to update documentation |
@mobileComputingNITH try https://github.com/don/nfc-share |
Thanks Dan for the suggestion! :) You have done such a great job writing that plugin. On Wed, Feb 11, 2015 at 8:47 PM, Don Coleman notifications@github.com
|
Not an Issue report, just a helpful pointer when the
JSON Error
pops up when writing or sharing a tag, it's due to the follow user error writing the method signature fornfc.share
ornfc.write
The record must be in an array, ie.
If this was an issue report (it's a bit late since this will already be used in implementation details downstream.) it'd be a suggestion to remove the array syntax (unless multiple tags are sharable/writable at once? @don possible?)
The text was updated successfully, but these errors were encountered: