{"action":"created","issue":{"url":"https://api.github.com/repos/phonegap/phonegap-plugin-push/issues/314","labels_url":"https://api.github.com/repos/phonegap/phonegap-plugin-push/issues/314/labels{/name}","comments_url":"https://api.github.com/repos/phonegap/phonegap-plugin-push/issues/314/comments","events_url":"https://api.github.com/repos/phonegap/phonegap-plugin-push/issues/314/events","html_url":"https://github.com/phonegap/phonegap-plugin-push/issues/314","id":115604466,"number":314,"title":"inbox style should return array of notifications object not last notification","user":{"login":"abdoljabbar","id":1947701,"avatar_url":"https://avatars.githubusercontent.com/u/1947701?v=3","gravatar_id":"","url":"https://api.github.com/users/abdoljabbar","html_url":"https://github.com/abdoljabbar","followers_url":"https://api.github.com/users/abdoljabbar/followers","following_url":"https://api.github.com/users/abdoljabbar/following{/other_user}","gists_url":"https://api.github.com/users/abdoljabbar/gists{/gist_id}","starred_url":"https://api.github.com/users/abdoljabbar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abdoljabbar/subscriptions","organizations_url":"https://api.github.com/users/abdoljabbar/orgs","repos_url":"https://api.github.com/users/abdoljabbar/repos","events_url":"https://api.github.com/users/abdoljabbar/events{/privacy}","received_events_url":"https://api.github.com/users/abdoljabbar/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/phonegap/phonegap-plugin-push/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/phonegap/phonegap-plugin-push/milestones/5","html_url":"https://github.com/phonegap/phonegap-plugin-push/milestones/Release%201.5.0","labels_url":"https://api.github.com/repos/phonegap/phonegap-plugin-push/milestones/5/labels","id":1355820,"number":5,"title":"Release 1.5.0","description":"","creator":{"login":"macdonst","id":353180,"avatar_url":"https://avatars.githubusercontent.com/u/353180?v=3","gravatar_id":"","url":"https://api.github.com/users/macdonst","html_url":"https://github.com/macdonst","followers_url":"https://api.github.com/users/macdonst/followers","following_url":"https://api.github.com/users/macdonst/following{/other_user}","gists_url":"https://api.github.com/users/macdonst/gists{/gist_id}","starred_url":"https://api.github.com/users/macdonst/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/macdonst/subscriptions","organizations_url":"https://api.github.com/users/macdonst/orgs","repos_url":"https://api.github.com/users/macdonst/repos","events_url":"https://api.github.com/users/macdonst/events{/privacy}","received_events_url":"https://api.github.com/users/macdonst/received_events","type":"User","site_admin":false},"open_issues":14,"closed_issues":5,"state":"open","created_at":"2015-10-14T17:21:48Z","updated_at":"2015-12-07T14:19:41Z","due_on":null,"closed_at":null},"comments":8,"created_at":"2015-11-06T22:35:52Z","updated_at":"2015-12-07T20:11:17Z","closed_at":null,"body":"hi,\r\nFirst thank u for this awesome Plugin.\r\nwhen i send notifications with inbox style and tap on them,   push.on('notification', callBack(data)) return just last notification object.\r\nI think it should be array of notifications object not just last.\r\nTnx in advance."},"comment":{"url":"https://api.github.com/repos/phonegap/phonegap-plugin-push/issues/comments/162645955","html_url":"https://github.com/phonegap/phonegap-plugin-push/issues/314#issuecomment-162645955","issue_url":"https://api.github.com/repos/phonegap/phonegap-plugin-push/issues/314","id":162645955,"user":{"login":"fredgalvao","id":616464,"avatar_url":"https://avatars.githubusercontent.com/u/616464?v=3","gravatar_id":"","url":"https://api.github.com/users/fredgalvao","html_url":"https://github.com/fredgalvao","followers_url":"https://api.github.com/users/fredgalvao/followers","following_url":"https://api.github.com/users/fredgalvao/following{/other_user}","gists_url":"https://api.github.com/users/fredgalvao/gists{/gist_id}","starred_url":"https://api.github.com/users/fredgalvao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fredgalvao/subscriptions","organizations_url":"https://api.github.com/users/fredgalvao/orgs","repos_url":"https://api.github.com/users/fredgalvao/repos","events_url":"https://api.github.com/users/fredgalvao/events{/privacy}","received_events_url":"https://api.github.com/users/fredgalvao/received_events","type":"User","site_admin":false},"created_at":"2015-12-07T20:11:17Z","updated_at":"2015-12-07T20:11:17Z","body":"Although that seems like it would \"work\", taking into consideration @macdonst 's observations on the code, I still think making the `Bundle extras` object hold all the notifications by itself is a better option. Saves a lot of code at the PushPlugin level, and avoids pretty much every concern stated by @macdonst."}}