{ "id": "175180", "key": "MOD-2651", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10034", "key": "MOD", "name": "Appcelerator Modules", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [], "resolution": null, "resolutiondate": null, "created": "2020-06-24T05:48:20.000+0000", "priority": { "name": "None", "id": "6" }, "labels": [], "versions": [ { "id": "21056", "name": "Release 2.2.0", "archived": false, "released": false } ], "issuelinks": [], "assignee": { "name": "ssingh", "key": "ssingh", "displayName": "Satinder Pal Singh", "active": true, "timeZone": "Asia/Kolkata" }, "updated": "2020-06-24T05:48:22.000+0000", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [ { "id": "13301", "name": "NFC" } ], "description": "User from Axway community unable to get text from NFC device. Additional detail as follows:\r\nThe code attempted:\r\n\r\n{code}\r\nvar nfc = require('ti.nfc');\r\nvar nfcAdapter = nfc.createNfcAdapter({\r\nonNdefDiscovered : handleDiscovery\r\n});\r\n \r\nfunction handleDiscovery(e) {\r\n // Add rows for the message, tag, and each of the records\r\n var data = [];\r\n \r\n Ti.API.warn(e);\r\n \r\n if (e.messages) {\r\n var message = e.messages[0];\r\n if (message.records) {\r\n for (var i = 0; i < message.records.length; i++) {\r\n data.push(message.records[i]);\r\n }\r\n }\r\n }\r\n \r\n Ti.API.info(data);\r\n}\r\n \r\nvar win = Ti.UI.createWindow({\r\n backgroundColor : '#fff'\r\n});\r\n \r\nvar btn = Ti.UI.createButton({\r\n title : 'Start Search'\r\n});\r\n \r\nbtn.addEventListener('click', function() {\r\n if (!nfcAdapter.isEnabled()) {\r\n Ti.API.error('This device does not support NFC capabilities!');\r\n return;\r\n }\r\n \r\n nfcAdapter.begin();\r\n // This is required for iOS only. Use \"invalidate()\" to invalidate a session.\r\n});\r\n \r\nwin.add(btn);\r\nwin.open();\r\n{code}\r\n\r\nThis is the resulting output:\r\n{code}\r\n{ messages = (\r\n {\r\n }\r\n );\r\n}\r\n{code}\r\n", "attachment": [], "flagged": false, "summary": "Unable to get text from NFC", "creator": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "ti.nfc module version 2.2.0\r\nTitanium SDK 9.0.3.GA\r\niOS version 13.5.1.", "comment": { "comments": [], "maxResults": 0, "total": 0, "startAt": 0 } } }