payload: {"action":"created","issue":{"url":"https://api.github.com/repos/EddyVerbruggen/nativescript-nfc/issues/34","repository_url":"https://api.github.com/repos/EddyVerbruggen/nativescript-nfc","labels_url":"https://api.github.com/repos/EddyVerbruggen/nativescript-nfc/issues/34/labels{/name}","comments_url":"https://api.github.com/repos/EddyVerbruggen/nativescript-nfc/issues/34/comments","events_url":"https://api.github.com/repos/EddyVerbruggen/nativescript-nfc/issues/34/events","html_url":"https://github.com/EddyVerbruggen/nativescript-nfc/issues/34","id":444270822,"node_id":"MDU6SXNzdWU0NDQyNzA4MjI=","number":34,"title":"callback not get called when detect nfc","user":{"login":"kousherAlam","id":14360099,"node_id":"MDQ6VXNlcjE0MzYwMDk5","avatar_url":"https://avatars1.githubusercontent.com/u/14360099?v=4","gravatar_id":"","url":"https://api.github.com/users/kousherAlam","html_url":"https://github.com/kousherAlam","followers_url":"https://api.github.com/users/kousherAlam/followers","following_url":"https://api.github.com/users/kousherAlam/following{/other_user}","gists_url":"https://api.github.com/users/kousherAlam/gists{/gist_id}","starred_url":"https://api.github.com/users/kousherAlam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kousherAlam/subscriptions","organizations_url":"https://api.github.com/users/kousherAlam/orgs","repos_url":"https://api.github.com/users/kousherAlam/repos","events_url":"https://api.github.com/users/kousherAlam/events{/privacy}","received_events_url":"https://api.github.com/users/kousherAlam/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2019-05-15T07:06:08Z","updated_at":"2019-08-30T07:24:56Z","closed_at":null,"author_association":"NONE","body":"callback not getting called, when nfc detected. the device play the sound but nothing is happening ... \r\n\r\n`\r\nimport { Injectable } from \"@angular/core\";\r\nimport { Nfc, NfcNdefData, NfcTagData } from \"nativescript-nfc\";\r\nimport { Subject } from \"rxjs\";\r\n\r\n@Injectable({\r\n    providedIn: 'root'\r\n})\r\nexport class NfcReaderService {\r\n    nfcData = new Subject();\r\n\r\n\r\n    private nfc: Nfc = new Nfc();\r\n    \r\n    constructor() {\r\n        this.nfc.available().then((avail) => {\r\n            this.nfc.enabled().then((on) => {\r\n                if (on) {\r\n                    console.log(\"NFC Enabled!!!\");\r\n                    this.readNFC();\r\n                    this.onTagDiscoverd();\r\n                } else {\r\n                    console.log(\"NFC Not Enabled\");\r\n                }\r\n            });\r\n        });\r\n    }\r\n\r\n    public readNFC() {\r\n        this.nfc.setOnNdefDiscoveredListener((data: NfcNdefData) => {\r\n            console.log(\"Nfc Data: \", data);\r\n            this.nfcData.next(data);\r\n            if (data.message) {\r\n                for (let m in data.message) {\r\n                    let record = data.message[m];\r\n                    console.log(\"Ndef discovered! Message record: \" + record.payloadAsString);\r\n                }\r\n            }\r\n        }, {\r\n                stopAfterFirstRead: false,\r\n                scanHint: \"Scan a tag, baby!\"\r\n            }).then(() => {\r\n                console.log(\"OnNdefDiscovered listener added\");\r\n            });\r\n    }\r\n\r\n    \r\n    public onTagDiscoverd() {\r\n        this.nfc.setOnTagDiscoveredListener((data: NfcTagData) => {\r\n            console.log(\"Discovered a tag with ID \" + data.id);\r\n        }).then(() => {\r\n            console.log(\"OnTagDiscovered listener added\");\r\n        });\r\n    }\r\n}\r\n\r\n\r\n`"},"comment":{"url":"https://api.github.com/repos/EddyVerbruggen/nativescript-nfc/issues/comments/526490864","html_url":"https://github.com/EddyVerbruggen/nativescript-nfc/issues/34#issuecomment-526490864","issue_url":"https://api.github.com/repos/EddyVerbruggen/nativescript-nfc/issues/34","id":526490864,"node_id":"MDEyOklzc3VlQ29tbWVudDUyNjQ5MDg2NA==","user":{"login":"EddyVerbruggen","id":1426370,"node_id":"MDQ6VXNlcjE0MjYzNzA=","avatar_url":"https://avatars1.githubusercontent.com/u/1426370?v=4","gravatar_id":"","url":"https://api.github.com/users/EddyVerbruggen","html_url":"https://github.com/EddyVerbruggen","followers_url":"https://api.github.com/users/EddyVerbruggen/followers","following_url":"https://api.github.com/users/EddyVerbruggen/following{/other_user}","gists_url":"https://api.github.com/users/EddyVerbruggen/gists{/gist_id}","starred_url":"https://api.github.com/users/EddyVerbruggen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EddyVerbruggen/subscriptions","organizations_url":"https://api.github.com/users/EddyVerbruggen/orgs","repos_url":"https://api.github.com/users/EddyVerbruggen/repos","events_url":"https://api.github.com/users/EddyVerbruggen/events{/privacy}","received_events_url":"https://api.github.com/users/EddyVerbruggen/received_events","type":"User","site_admin":false},"created_at":"2019-08-30T07:24:56Z","updated_at":"2019-08-30T07:24:56Z","author_association":"OWNER","body":"Please share a repo instead of a snippet and I'll take a look. Also, please post steps to reproduce this issue."}}
other: {"actor":{"display_login":"EddyVerbruggen"}}