{"action":"opened","issue":{"url":"https://api.github.com/repos/driftyco/ionic-native/issues/250","repository_url":"https://api.github.com/repos/driftyco/ionic-native","labels_url":"https://api.github.com/repos/driftyco/ionic-native/issues/250/labels{/name}","comments_url":"https://api.github.com/repos/driftyco/ionic-native/issues/250/comments","events_url":"https://api.github.com/repos/driftyco/ionic-native/issues/250/events","html_url":"https://github.com/driftyco/ionic-native/issues/250","id":162420682,"number":250,"title":"Push Plugin: Add `clearAllNotifications` method and return promises/observables","user":{"login":"FdezRomero","id":1807985,"avatar_url":"https://avatars.githubusercontent.com/u/1807985?v=3","gravatar_id":"","url":"https://api.github.com/users/FdezRomero","html_url":"https://github.com/FdezRomero","followers_url":"https://api.github.com/users/FdezRomero/followers","following_url":"https://api.github.com/users/FdezRomero/following{/other_user}","gists_url":"https://api.github.com/users/FdezRomero/gists{/gist_id}","starred_url":"https://api.github.com/users/FdezRomero/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FdezRomero/subscriptions","organizations_url":"https://api.github.com/users/FdezRomero/orgs","repos_url":"https://api.github.com/users/FdezRomero/repos","events_url":"https://api.github.com/users/FdezRomero/events{/privacy}","received_events_url":"https://api.github.com/users/FdezRomero/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-06-27T10:28:55Z","updated_at":"2016-06-27T10:28:55Z","closed_at":null,"body":"Hey there!\r\n\r\nI started using the Push plugin and noticed that is missing the newer [clearAllNotifications](https://github.com/phonegap/phonegap-plugin-push/blob/master/docs/API.md#pushclearallnotificationssuccesshandler-errorhandler---ios-android-only) method.\r\n\r\nI also noticed that the ionic-native wrapper is using the plugin's success and error callbacks instead of returning a promise/observable as it happens with most of the other plugins, which is confusing considering the docs say plugins return either of these.\r\n\r\nAny chance to add this missing method and use promises/observables instead of callbacks? I'm guessing there are people already using this plugin so it should keep supporting the callbacks and return a promise/observable if none is specified.\r\n\r\nThanks!"}}
{"actor":{"display_login":"FdezRomero"}}