{"action":"created","issue":{"url":"https://api.github.com/repos/zckrs/cordova-plugin-push-notification/issues/5","labels_url":"https://api.github.com/repos/zckrs/cordova-plugin-push-notification/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/zckrs/cordova-plugin-push-notification/issues/5/comments","events_url":"https://api.github.com/repos/zckrs/cordova-plugin-push-notification/issues/5/events","html_url":"https://github.com/zckrs/cordova-plugin-push-notification/issues/5","id":125854130,"number":5,"title":"How get regid after register","user":{"login":"mapeveri","id":6276555,"avatar_url":"https://avatars.githubusercontent.com/u/6276555?v=3","gravatar_id":"","url":"https://api.github.com/users/mapeveri","html_url":"https://github.com/mapeveri","followers_url":"https://api.github.com/users/mapeveri/followers","following_url":"https://api.github.com/users/mapeveri/following{/other_user}","gists_url":"https://api.github.com/users/mapeveri/gists{/gist_id}","starred_url":"https://api.github.com/users/mapeveri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mapeveri/subscriptions","organizations_url":"https://api.github.com/users/mapeveri/orgs","repos_url":"https://api.github.com/users/mapeveri/repos","events_url":"https://api.github.com/users/mapeveri/events{/privacy}","received_events_url":"https://api.github.com/users/mapeveri/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2016-01-10T23:48:39Z","updated_at":"2016-01-11T14:39:47Z","closed_at":null,"body":"Hi, how can get regid after register. I have this code:\r\n\r\n          var pushNotification = window.plugins.pushNotification;\r\n          pushNotification.register(successHandler, errorHandler, {\"senderID\":\"myprojectnumber\", \"ecb\":\"onNotification\"});\r\n\r\n\r\n          function errorHandler (error) {\r\n              $scope.msjpush = \"Error: \" + error;\r\n          }\r\n\r\n          function successHandler (result) {\r\n             $scope.msjpush = \"Success: \" + result;\r\n          }\r\n\r\n         // handle GCM notifications for Android\r\n         function onNotification(e) {\r\n           switch(e.event){\r\n                 case 'registered':\r\n  \t\t      if (e.regid.length > 0){\r\n                          $scope.msjpush = e.regid;\r\n  \t\t       }\r\n                  break;\r\n             case 'message':\r\n                   $scope.msjpush = \"Message\";\r\n                    break;\r\n             }\r\n          }\r\n\r\nBut never enter the function onNotification. I use android.\r\n\r\nThanks!"},"comment":{"url":"https://api.github.com/repos/zckrs/cordova-plugin-push-notification/issues/comments/170573237","html_url":"https://github.com/zckrs/cordova-plugin-push-notification/issues/5#issuecomment-170573237","issue_url":"https://api.github.com/repos/zckrs/cordova-plugin-push-notification/issues/5","id":170573237,"user":{"login":"mapeveri","id":6276555,"avatar_url":"https://avatars.githubusercontent.com/u/6276555?v=3","gravatar_id":"","url":"https://api.github.com/users/mapeveri","html_url":"https://github.com/mapeveri","followers_url":"https://api.github.com/users/mapeveri/followers","following_url":"https://api.github.com/users/mapeveri/following{/other_user}","gists_url":"https://api.github.com/users/mapeveri/gists{/gist_id}","starred_url":"https://api.github.com/users/mapeveri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mapeveri/subscriptions","organizations_url":"https://api.github.com/users/mapeveri/orgs","repos_url":"https://api.github.com/users/mapeveri/repos","events_url":"https://api.github.com/users/mapeveri/events{/privacy}","received_events_url":"https://api.github.com/users/mapeveri/received_events","type":"User","site_admin":false},"created_at":"2016-01-11T14:39:47Z","updated_at":"2016-01-11T14:39:47Z","body":"@kumaresan-cgvak Yes, my os version is Android 4.1.2, version kernel 3.4.0. \r\n\r\nThis apis I have enabled:\r\n\r\n![image](https://cloud.githubusercontent.com/assets/6276555/12236320/dcffae28-b857-11e5-86bf-d2f987e38234.png)\r\n\r\nThis key i have:\r\n\r\n![image](https://cloud.githubusercontent.com/assets/6276555/12236347/fece764c-b857-11e5-8616-b3e36c0e0da3.png)\r\n\r\nAny data more you need?."}}