{"action":"created","issue":{"url":"https://api.github.com/repos/darryncampbell/DataWedgeCordova/issues/2","repository_url":"https://api.github.com/repos/darryncampbell/DataWedgeCordova","labels_url":"https://api.github.com/repos/darryncampbell/DataWedgeCordova/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/darryncampbell/DataWedgeCordova/issues/2/comments","events_url":"https://api.github.com/repos/darryncampbell/DataWedgeCordova/issues/2/events","html_url":"https://github.com/darryncampbell/DataWedgeCordova/issues/2","id":260890395,"number":2,"title":"Datawedge & Ionic2","user":{"login":"willemjanvankranenburg","id":31033654,"avatar_url":"https://avatars3.githubusercontent.com/u/31033654?v=4","gravatar_id":"","url":"https://api.github.com/users/willemjanvankranenburg","html_url":"https://github.com/willemjanvankranenburg","followers_url":"https://api.github.com/users/willemjanvankranenburg/followers","following_url":"https://api.github.com/users/willemjanvankranenburg/following{/other_user}","gists_url":"https://api.github.com/users/willemjanvankranenburg/gists{/gist_id}","starred_url":"https://api.github.com/users/willemjanvankranenburg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/willemjanvankranenburg/subscriptions","organizations_url":"https://api.github.com/users/willemjanvankranenburg/orgs","repos_url":"https://api.github.com/users/willemjanvankranenburg/repos","events_url":"https://api.github.com/users/willemjanvankranenburg/events{/privacy}","received_events_url":"https://api.github.com/users/willemjanvankranenburg/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":18,"created_at":"2017-09-27T08:34:17Z","updated_at":"2017-12-14T15:30:40Z","closed_at":"2017-12-14T12:55:41Z","author_association":"NONE","body":"Hello,\r\n\r\nI want to create an IONIC2 app for a Zebra TC8000 scanner. I tried using your plugin but without any luck. \r\n\r\nI used [the developer.zebra.com tutorial for cordova](https://developer.zebra.com/community/android/android-forums/android-blogs/blog/2016/08/04/integrating-datawedge-into-your-cordova-application). I followed this tutorial step by step, but instead of window.plugins.intentShim.registerBroadcastReceiver I used\r\nthe following code in the constructor (in **typescript**):\r\n\r\n`window['plugins'].intentShim.registerBroadcastReceiver(() => {`\r\n`     let filterActions: ['com.zebra.datawedgecordova.ACTION'],`\r\n`     filterCategories: ['com.android.intent.category.DEFAULT']`\r\n`}, (intent) => {`\r\n`     this.broadcastReceived = \"Broadcast Received = true\"`\r\n`     //  Broadcast received  `\r\n`     console.log('Received Intent: ' + JSON.stringify(intent.extras));`\r\n`     if (intent.extras[\"com.symbol.datawedge.data_string\"] != null) {`\r\n`         this.broadcastBarcode = intent.extras[\"com.symbol.datawedge.data_string\"];`\r\n`     }`\r\n`});`\r\n\r\nin my HTML file, i have a `<p> {{broadcastReceived}} , {{broadcastBarcode}} </p>`.\r\n\r\nWhen I run this on my Zebra scanner the console.log never \"fires\" and this.broadcastBarcode isn't set, so the code never comes in the `if`\r\n\r\nDo you know if it's possible? And how? Is there something i have to import? (installed the darryncampbell-cordova-plugin-intent)\r\n\r\nWillem-Jan"},"comment":{"url":"https://api.github.com/repos/darryncampbell/DataWedgeCordova/issues/comments/351744134","html_url":"https://github.com/darryncampbell/DataWedgeCordova/issues/2#issuecomment-351744134","issue_url":"https://api.github.com/repos/darryncampbell/DataWedgeCordova/issues/2","id":351744134,"user":{"login":"as2081","id":22677127,"avatar_url":"https://avatars2.githubusercontent.com/u/22677127?v=4","gravatar_id":"","url":"https://api.github.com/users/as2081","html_url":"https://github.com/as2081","followers_url":"https://api.github.com/users/as2081/followers","following_url":"https://api.github.com/users/as2081/following{/other_user}","gists_url":"https://api.github.com/users/as2081/gists{/gist_id}","starred_url":"https://api.github.com/users/as2081/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/as2081/subscriptions","organizations_url":"https://api.github.com/users/as2081/orgs","repos_url":"https://api.github.com/users/as2081/repos","events_url":"https://api.github.com/users/as2081/events{/privacy}","received_events_url":"https://api.github.com/users/as2081/received_events","type":"User","site_admin":false},"created_at":"2017-12-14T15:30:40Z","updated_at":"2017-12-14T15:30:40Z","author_association":"NONE","body":"Mine is configured like that, apart from I am still using the same name _'com.zebra.datawedgecordova.ACTION'_ as my intent action. My profile name is still DataWedgeCordova.\r\n\r\nThanks for the help by the way, I really don't know where I have gone wrong yet."}}
{"actor":{"display_login":"as2081"}}