{"action":"created","issue":{"url":"https://api.github.com/repos/bsorrentino/cordova-broadcaster/issues/21","repository_url":"https://api.github.com/repos/bsorrentino/cordova-broadcaster","labels_url":"https://api.github.com/repos/bsorrentino/cordova-broadcaster/issues/21/labels{/name}","comments_url":"https://api.github.com/repos/bsorrentino/cordova-broadcaster/issues/21/comments","events_url":"https://api.github.com/repos/bsorrentino/cordova-broadcaster/issues/21/events","html_url":"https://github.com/bsorrentino/cordova-broadcaster/issues/21","id":243411747,"number":21,"title":"addEventListner does not get called back in ios","user":{"login":"Prabuganesan","id":14870631,"avatar_url":"https://avatars0.githubusercontent.com/u/14870631?v=4","gravatar_id":"","url":"https://api.github.com/users/Prabuganesan","html_url":"https://github.com/Prabuganesan","followers_url":"https://api.github.com/users/Prabuganesan/followers","following_url":"https://api.github.com/users/Prabuganesan/following{/other_user}","gists_url":"https://api.github.com/users/Prabuganesan/gists{/gist_id}","starred_url":"https://api.github.com/users/Prabuganesan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Prabuganesan/subscriptions","organizations_url":"https://api.github.com/users/Prabuganesan/orgs","repos_url":"https://api.github.com/users/Prabuganesan/repos","events_url":"https://api.github.com/users/Prabuganesan/events{/privacy}","received_events_url":"https://api.github.com/users/Prabuganesan/received_events","type":"User","site_admin":false},"labels":[{"id":582622368,"url":"https://api.github.com/repos/bsorrentino/cordova-broadcaster/labels/under%20verification","name":"under verification","color":"fef2c0","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2017-07-17T14:21:30Z","updated_at":"2017-07-18T09:25:05Z","closed_at":null,"body":"This is my code in ionic.\r\n\r\n```javascript\r\nconstructor(public navCtrl: NavController,public broadcaster: Broadcaster,private platform: Platform) \r\n{\r\n   this.platform.ready().then(() => {\r\n     console.log('Ready')\r\n     this.broadcaster.addEventListener('postevent')\r\n       .subscribe((Event) => console.log('After post ionic'));\r\n\r\n      this.broadcaster.fireNativeEvent('eventName', {}).then(() => console.log('After fire ionic'));\r\n   });\r\n```\r\nAnd i have add following code in native side. In MainViewController \r\n\r\n```objective-c\r\n (void)viewDidLoad\r\n{\r\n    [super viewDidLoad];\r\n     [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(navigateFromPlugin) name:@\"eventName\" object:nil];\r\n    // Do any additional setup after loading the view from its nib.\r\n}\r\n-(void)navigateFromPlugin\r\n{\r\n    NSLog(@\"Print Native **************\");\r\n    \r\n    [[NSNotificationCenter defaultCenter] postNotificationName:@\"postevent\" object:self];\r\n\r\n}\r\n```\r\nThis code not working. 'After post ionic' log not printed."},"comment":{"url":"https://api.github.com/repos/bsorrentino/cordova-broadcaster/issues/comments/316008547","html_url":"https://github.com/bsorrentino/cordova-broadcaster/issues/21#issuecomment-316008547","issue_url":"https://api.github.com/repos/bsorrentino/cordova-broadcaster/issues/21","id":316008547,"user":{"login":"bsorrentino","id":301596,"avatar_url":"https://avatars1.githubusercontent.com/u/301596?v=4","gravatar_id":"","url":"https://api.github.com/users/bsorrentino","html_url":"https://github.com/bsorrentino","followers_url":"https://api.github.com/users/bsorrentino/followers","following_url":"https://api.github.com/users/bsorrentino/following{/other_user}","gists_url":"https://api.github.com/users/bsorrentino/gists{/gist_id}","starred_url":"https://api.github.com/users/bsorrentino/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bsorrentino/subscriptions","organizations_url":"https://api.github.com/users/bsorrentino/orgs","repos_url":"https://api.github.com/users/bsorrentino/repos","events_url":"https://api.github.com/users/bsorrentino/events{/privacy}","received_events_url":"https://api.github.com/users/bsorrentino/received_events","type":"User","site_admin":false},"created_at":"2017-07-18T09:25:05Z","updated_at":"2017-07-18T09:25:05Z","body":"the question is ... what NSTimer do ?\r\n\r\nI've to investigate\r\n"}}
{"actor":{"display_login":"bsorrentino"}}