{"action":"created","issue":{"url":"https://api.github.com/repos/don/ionic-nfc-reader/issues/3","labels_url":"https://api.github.com/repos/don/ionic-nfc-reader/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/don/ionic-nfc-reader/issues/3/comments","events_url":"https://api.github.com/repos/don/ionic-nfc-reader/issues/3/events","html_url":"https://github.com/don/ionic-nfc-reader/issues/3","id":65688978,"number":3,"title":"Scan nfc the first time, app doesn't get the nfc message. But then scan again, I can got the msg.","user":{"login":"Alexniver","id":3366229,"avatar_url":"https://avatars.githubusercontent.com/u/3366229?v=3","gravatar_id":"","url":"https://api.github.com/users/Alexniver","html_url":"https://github.com/Alexniver","followers_url":"https://api.github.com/users/Alexniver/followers","following_url":"https://api.github.com/users/Alexniver/following{/other_user}","gists_url":"https://api.github.com/users/Alexniver/gists{/gist_id}","starred_url":"https://api.github.com/users/Alexniver/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Alexniver/subscriptions","organizations_url":"https://api.github.com/users/Alexniver/orgs","repos_url":"https://api.github.com/users/Alexniver/repos","events_url":"https://api.github.com/users/Alexniver/events{/privacy}","received_events_url":"https://api.github.com/users/Alexniver/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-04-01T13:52:25Z","updated_at":"2015-04-02T01:54:43Z","closed_at":null,"body":"Hi, I use ionic and use your code, when the app starts , I scan nfc,  my phone give other app options to scan nfc and my app got nothing. I cancel the options  then scan again, my app got the nfc message right. How can I make the app get the nfc message at the first time? where did I do wrong? I see nothing special in your config.xml or some where other place. Could you help me? Thank you very much."},"comment":{"url":"https://api.github.com/repos/don/ionic-nfc-reader/issues/comments/88688836","html_url":"https://github.com/don/ionic-nfc-reader/issues/3#issuecomment-88688836","issue_url":"https://api.github.com/repos/don/ionic-nfc-reader/issues/3","id":88688836,"user":{"login":"don","id":3133,"avatar_url":"https://avatars.githubusercontent.com/u/3133?v=3","gravatar_id":"","url":"https://api.github.com/users/don","html_url":"https://github.com/don","followers_url":"https://api.github.com/users/don/followers","following_url":"https://api.github.com/users/don/following{/other_user}","gists_url":"https://api.github.com/users/don/gists{/gist_id}","starred_url":"https://api.github.com/users/don/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/don/subscriptions","organizations_url":"https://api.github.com/users/don/orgs","repos_url":"https://api.github.com/users/don/repos","events_url":"https://api.github.com/users/don/events{/privacy}","received_events_url":"https://api.github.com/users/don/received_events","type":"User","site_admin":false},"created_at":"2015-04-02T01:54:43Z","updated_at":"2015-04-02T01:54:43Z","body":"@Alexniver I'm not sure why those constants broke the NFC scanning. You're original problem sounds like an initialization issue, usually solved by $ionicPlatform.ready. Initialization of the plugin is a bit screwy. If you find a better solution, please let me know."}}