{"action":"created","issue":{"url":"https://api.github.com/repos/phonegap/phonegap-plugin-push/issues/2091","repository_url":"https://api.github.com/repos/phonegap/phonegap-plugin-push","labels_url":"https://api.github.com/repos/phonegap/phonegap-plugin-push/issues/2091/labels{/name}","comments_url":"https://api.github.com/repos/phonegap/phonegap-plugin-push/issues/2091/comments","events_url":"https://api.github.com/repos/phonegap/phonegap-plugin-push/issues/2091/events","html_url":"https://github.com/phonegap/phonegap-plugin-push/issues/2091","id":279266050,"node_id":"MDU6SXNzdWUyNzkyNjYwNTA=","number":2091,"title":"Getting error in pushnotification.init function","user":{"login":"kanishkamehta801","id":26713798,"node_id":"MDQ6VXNlcjI2NzEzNzk4","avatar_url":"https://avatars2.githubusercontent.com/u/26713798?v=4","gravatar_id":"","url":"https://api.github.com/users/kanishkamehta801","html_url":"https://github.com/kanishkamehta801","followers_url":"https://api.github.com/users/kanishkamehta801/followers","following_url":"https://api.github.com/users/kanishkamehta801/following{/other_user}","gists_url":"https://api.github.com/users/kanishkamehta801/gists{/gist_id}","starred_url":"https://api.github.com/users/kanishkamehta801/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kanishkamehta801/subscriptions","organizations_url":"https://api.github.com/users/kanishkamehta801/orgs","repos_url":"https://api.github.com/users/kanishkamehta801/repos","events_url":"https://api.github.com/users/kanishkamehta801/events{/privacy}","received_events_url":"https://api.github.com/users/kanishkamehta801/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-12-05T06:56:04Z","updated_at":"2018-06-03T09:15:13Z","closed_at":"2017-12-05T17:18:20Z","author_association":"NONE","body":"Hello Team,\r\n\r\nI am getting an error in pushnotification.init function. The error is in push.js file.\r\nError says in below line in push.js: var e = (typeof msg === 'string') ? new Error(msg) : msg;\r\n\r\nHere is my sample code:\r\n\r\nfunction onDeviceReady(){\r\n        var push = PushNotification.init({\r\n                                     ios: {\r\n                                     alert: \"true\",\r\n                                     badge: \"true\",\r\n                                     sound: \"true\"\r\n                                     }\r\n            });\r\n\r\n    push.on('registration', function(data) {\r\n                console.log(JSON.stringify(data));\r\n                });\r\n\r\n    push.on('error', function(e) {\r\n            console.log(\"On error = \"+JSON.stringify(e));\r\n            });\r\n}\r\n\r\nI am not getting registration id but getting \"On error\" console.\r\nPlease tell me the solution for it.\r\n\r\nThanks in advance!\r\n"},"comment":{"url":"https://api.github.com/repos/phonegap/phonegap-plugin-push/issues/comments/394148375","html_url":"https://github.com/phonegap/phonegap-plugin-push/issues/2091#issuecomment-394148375","issue_url":"https://api.github.com/repos/phonegap/phonegap-plugin-push/issues/2091","id":394148375,"node_id":"MDEyOklzc3VlQ29tbWVudDM5NDE0ODM3NQ==","user":{"login":"lock[bot]","id":33595554,"node_id":"MDM6Qm90MzM1OTU1NTQ=","avatar_url":"https://avatars1.githubusercontent.com/in/6672?v=4","gravatar_id":"","url":"https://api.github.com/users/lock%5Bbot%5D","html_url":"https://github.com/apps/lock","followers_url":"https://api.github.com/users/lock%5Bbot%5D/followers","following_url":"https://api.github.com/users/lock%5Bbot%5D/following{/other_user}","gists_url":"https://api.github.com/users/lock%5Bbot%5D/gists{/gist_id}","starred_url":"https://api.github.com/users/lock%5Bbot%5D/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lock%5Bbot%5D/subscriptions","organizations_url":"https://api.github.com/users/lock%5Bbot%5D/orgs","repos_url":"https://api.github.com/users/lock%5Bbot%5D/repos","events_url":"https://api.github.com/users/lock%5Bbot%5D/events{/privacy}","received_events_url":"https://api.github.com/users/lock%5Bbot%5D/received_events","type":"Bot","site_admin":false},"created_at":"2018-06-03T09:15:13Z","updated_at":"2018-06-03T09:15:13Z","author_association":"NONE","body":"This thread has been automatically locked."}}
{"actor":{"display_login":"lock"}}