{"action":"created","issue":{"url":"https://api.github.com/repos/phonegap/phonegap-plugin-push/issues/325","labels_url":"https://api.github.com/repos/phonegap/phonegap-plugin-push/issues/325/labels{/name}","comments_url":"https://api.github.com/repos/phonegap/phonegap-plugin-push/issues/325/comments","events_url":"https://api.github.com/repos/phonegap/phonegap-plugin-push/issues/325/events","html_url":"https://github.com/phonegap/phonegap-plugin-push/issues/325","id":116419181,"number":325,"title":"[iOS]push.on('registration') doesnt call back","user":{"login":"bAstimc","id":2527400,"avatar_url":"https://avatars.githubusercontent.com/u/2527400?v=3","gravatar_id":"","url":"https://api.github.com/users/bAstimc","html_url":"https://github.com/bAstimc","followers_url":"https://api.github.com/users/bAstimc/followers","following_url":"https://api.github.com/users/bAstimc/following{/other_user}","gists_url":"https://api.github.com/users/bAstimc/gists{/gist_id}","starred_url":"https://api.github.com/users/bAstimc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bAstimc/subscriptions","organizations_url":"https://api.github.com/users/bAstimc/orgs","repos_url":"https://api.github.com/users/bAstimc/repos","events_url":"https://api.github.com/users/bAstimc/events{/privacy}","received_events_url":"https://api.github.com/users/bAstimc/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/phonegap/phonegap-plugin-push/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-11-11T20:55:25Z","updated_at":"2015-11-12T17:41:29Z","closed_at":null,"body":"Hi,\r\nI got the problem that the device is registered and also display the notification. But I can't use the Callback function from push.on('registration')  to receive the data.registrationId and additional Data.It just doesn't fire the registration event. \r\n\r\n```javascript\r\nvar push = PushNotification.init({ \r\n  \"android\": {\r\n    \"senderID\": \"123MYID\"\r\n  },\r\n  \"ios\": {\r\n    \"alert\": \"true\",\r\n    \"badge\": \"true\",\r\n    \"sound\": \"true\"\r\n  }, \r\n  \"windows\": {} \r\n});\r\n\r\npush.on('registration', function(data) {\r\n        console.log('REGISTER DEVICE: '+data.registrationId);\r\n});\r\n```\r\nAny clues? :("},"comment":{"url":"https://api.github.com/repos/phonegap/phonegap-plugin-push/issues/comments/156179691","html_url":"https://github.com/phonegap/phonegap-plugin-push/issues/325#issuecomment-156179691","issue_url":"https://api.github.com/repos/phonegap/phonegap-plugin-push/issues/325","id":156179691,"user":{"login":"bAstimc","id":2527400,"avatar_url":"https://avatars.githubusercontent.com/u/2527400?v=3","gravatar_id":"","url":"https://api.github.com/users/bAstimc","html_url":"https://github.com/bAstimc","followers_url":"https://api.github.com/users/bAstimc/followers","following_url":"https://api.github.com/users/bAstimc/following{/other_user}","gists_url":"https://api.github.com/users/bAstimc/gists{/gist_id}","starred_url":"https://api.github.com/users/bAstimc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bAstimc/subscriptions","organizations_url":"https://api.github.com/users/bAstimc/orgs","repos_url":"https://api.github.com/users/bAstimc/repos","events_url":"https://api.github.com/users/bAstimc/events{/privacy}","received_events_url":"https://api.github.com/users/bAstimc/received_events","type":"User","site_admin":false},"created_at":"2015-11-12T17:41:29Z","updated_at":"2015-11-12T17:41:29Z","body":"The ios dialog appeared and accepted it. And I received the notifications I sent from the server. \r\nWell the console calls the native registration and the myDevice's ID but it never fires the javascript registration so I can't get the ID to work with in JS. \r\nBasicly as @matejkramny told."}}