{"action":"created","issue":{"url":"https://api.github.com/repos/phonegap/phonegap-plugin-push/issues/794","repository_url":"https://api.github.com/repos/phonegap/phonegap-plugin-push","labels_url":"https://api.github.com/repos/phonegap/phonegap-plugin-push/issues/794/labels{/name}","comments_url":"https://api.github.com/repos/phonegap/phonegap-plugin-push/issues/794/comments","events_url":"https://api.github.com/repos/phonegap/phonegap-plugin-push/issues/794/events","html_url":"https://github.com/phonegap/phonegap-plugin-push/issues/794","id":147415138,"number":794,"title":"Unregistered triggered 1 second after register, no notifications received","user":{"login":"octavianpetrescu","id":18397693,"avatar_url":"https://avatars.githubusercontent.com/u/18397693?v=3","gravatar_id":"","url":"https://api.github.com/users/octavianpetrescu","html_url":"https://github.com/octavianpetrescu","followers_url":"https://api.github.com/users/octavianpetrescu/followers","following_url":"https://api.github.com/users/octavianpetrescu/following{/other_user}","gists_url":"https://api.github.com/users/octavianpetrescu/gists{/gist_id}","starred_url":"https://api.github.com/users/octavianpetrescu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/octavianpetrescu/subscriptions","organizations_url":"https://api.github.com/users/octavianpetrescu/orgs","repos_url":"https://api.github.com/users/octavianpetrescu/repos","events_url":"https://api.github.com/users/octavianpetrescu/events{/privacy}","received_events_url":"https://api.github.com/users/octavianpetrescu/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/phonegap/phonegap-plugin-push/labels/android","name":"android","color":"BFD4F2"},{"url":"https://api.github.com/repos/phonegap/phonegap-plugin-push/labels/can't%20reproduce","name":"can't reproduce","color":"cccccc"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-04-11T12:44:25Z","updated_at":"2016-04-11T13:21:16Z","closed_at":null,"body":"### Actual Behaviour\r\nIt triggers the unregister event after 1 sec and I cannot receive any notification\r\n\r\n### Reproduce Scenario (including but not limited to)\r\nI am on development scenario, first it worked fine, but after I reinstaled some times\r\nthe apk, it happened this.\r\n\r\n\r\n#### Platform and Version (eg. Android 5.0 or iOS 9.2.1)\r\nAndroid 5.1.1 and Ios 4.0.1\r\n\r\n#### (Android) What device vendor (e.g. Samsung, HTC, Sony...)\r\nNexus 5X, Samsung S4\r\n\r\n#### Cordova CLI version and cordova platform version\r\n\r\n    cordova --version     6.1.0\r\n\r\n#### Plugin version\r\n\r\n    cordova plugin version | grep phonegap-plugin-push   1.6.1\r\n\r\nAny help is apreciate."},"comment":{"url":"https://api.github.com/repos/phonegap/phonegap-plugin-push/issues/comments/208339066","html_url":"https://github.com/phonegap/phonegap-plugin-push/issues/794#issuecomment-208339066","issue_url":"https://api.github.com/repos/phonegap/phonegap-plugin-push/issues/794","id":208339066,"user":{"login":"octavianpetrescu","id":18397693,"avatar_url":"https://avatars.githubusercontent.com/u/18397693?v=3","gravatar_id":"","url":"https://api.github.com/users/octavianpetrescu","html_url":"https://github.com/octavianpetrescu","followers_url":"https://api.github.com/users/octavianpetrescu/followers","following_url":"https://api.github.com/users/octavianpetrescu/following{/other_user}","gists_url":"https://api.github.com/users/octavianpetrescu/gists{/gist_id}","starred_url":"https://api.github.com/users/octavianpetrescu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/octavianpetrescu/subscriptions","organizations_url":"https://api.github.com/users/octavianpetrescu/orgs","repos_url":"https://api.github.com/users/octavianpetrescu/repos","events_url":"https://api.github.com/users/octavianpetrescu/events{/privacy}","received_events_url":"https://api.github.com/users/octavianpetrescu/received_events","type":"User","site_admin":false},"created_at":"2016-04-11T13:21:16Z","updated_at":"2016-04-11T13:21:16Z","body":" let push = PushNotification.init({\r\n            android: {\r\n                senderID: Constants.GCMSenderId,\r\n                forceShow: true\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\n        push.on('registration', (data) => {\r\n            DataStore.SetRegistrationId(data.registrationId);\r\n        });\r\n\r\n        push.on('notification', (data) => {\r\n            if (CurrentProfile.IsLogedIn()) {\r\n                console.log(data);\r\n                console.log(data.additionalData);\r\n            }\r\n        });\r\n\r\n        push.on('error', (e) => {\r\n            NotificationManager.showErrorNotification(e.message);\r\n        });\r\n\r\n        push.unregister(function () {\r\n            alert('success unregister');\r\n        }, function () {\r\n            alert('error ');\r\n        });\r\n\r\nAnd It always show the alert from unregistered "}}