{"action":"opened","issue":{"url":"https://api.github.com/repos/driftyco/ionic-cloud/issues/94","repository_url":"https://api.github.com/repos/driftyco/ionic-cloud","labels_url":"https://api.github.com/repos/driftyco/ionic-cloud/issues/94/labels{/name}","comments_url":"https://api.github.com/repos/driftyco/ionic-cloud/issues/94/comments","events_url":"https://api.github.com/repos/driftyco/ionic-cloud/issues/94/events","html_url":"https://github.com/driftyco/ionic-cloud/issues/94","id":189399525,"number":94,"title":"Ionic Cloud fails to init the Push Plugin","user":{"login":"kjhnns","id":897794,"avatar_url":"https://avatars.githubusercontent.com/u/897794?v=3","gravatar_id":"","url":"https://api.github.com/users/kjhnns","html_url":"https://github.com/kjhnns","followers_url":"https://api.github.com/users/kjhnns/followers","following_url":"https://api.github.com/users/kjhnns/following{/other_user}","gists_url":"https://api.github.com/users/kjhnns/gists{/gist_id}","starred_url":"https://api.github.com/users/kjhnns/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kjhnns/subscriptions","organizations_url":"https://api.github.com/users/kjhnns/orgs","repos_url":"https://api.github.com/users/kjhnns/repos","events_url":"https://api.github.com/users/kjhnns/events{/privacy}","received_events_url":"https://api.github.com/users/kjhnns/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-11-15T14:01:57Z","updated_at":"2016-11-15T14:01:57Z","closed_at":null,"body":"Hi, i just recently have trouble with my phonegap-push-plugin, it won't init anymore. I dont think that it relates to the issue, but the problem appeared ever since I installed the deploy-plugin, although the deploy-plugin works. \r\n\r\nThe error that appears during initialization is the following:\r\n```\r\nI/chromium(15125): [INFO:CONSOLE(447)] \"Uncaught TypeError: Object function () {   \r\nI/chromium(15125): } has no method 'init'\", source: file:///android_asset/www/lib/ionic.cloud.min.js?ionicCachebuster=14929 (447)\r\n```\r\nthe line it is referring to in the `ionic.cloud.min.js` is the following:\r\n```\r\n return this.blockRegistration ? e.reject(new Error(\"Another registration is already in progress.\")) : (this.blockRegistration = !0, this.emitter.once(\"device:ready\", function() {\r\n                        var i = t._getPushPlugin();\r\n/* ThisLine */          i ? (t.plugin = i.init(t.options.pluginConfig), t.plugin.on(\"registration\", function(i) { t.blockRegistration = !1, t.token = { token: i.registrationId }, t.token.registered = !0, e.resolve(t.token) }), t._callbackRegistration(), t.registered = !0) : e.reject(new Error(\"Push plugin not found! See logs.\")) })), e.promise }, t.prototype.unregister = function() {\r\n                    var t = this,\r\n                        e = new n.DeferredPromise;\r\n```\r\n\r\n\r\nI ended up trying different dependencies and what have you. But I was able to replicate the error when i removed my platforms folder and used `ionic state reset` to restore it. The weird thing is, that when i remove the platforms folder and run `ionic platform add android` the push plugin works. \r\n\r\nI'm using `\"@ionic/cloud\": \"0.9.0\"` and `<plugin name=\"phonegap-plugin-push\" spec=\"1.8.2\">`. \r\n\r\n\r\nI'm not really familiar with cordova, thats why at this point i could really use some help. Thanks in advance :)"}}
{"actor":{"display_login":"kjhnns"}}