{"action":"created","issue":{"url":"https://api.github.com/repos/ionic-team/capacitor/issues/897","repository_url":"https://api.github.com/repos/ionic-team/capacitor","labels_url":"https://api.github.com/repos/ionic-team/capacitor/issues/897/labels{/name}","comments_url":"https://api.github.com/repos/ionic-team/capacitor/issues/897/comments","events_url":"https://api.github.com/repos/ionic-team/capacitor/issues/897/events","html_url":"https://github.com/ionic-team/capacitor/issues/897","id":372211622,"node_id":"MDU6SXNzdWUzNzIyMTE2MjI=","number":897,"title":"phonegap-plugin-push event on notification recieved not being fired","user":{"login":"solojuve1897","id":37837403,"node_id":"MDQ6VXNlcjM3ODM3NDAz","avatar_url":"https://avatars0.githubusercontent.com/u/37837403?v=4","gravatar_id":"","url":"https://api.github.com/users/solojuve1897","html_url":"https://github.com/solojuve1897","followers_url":"https://api.github.com/users/solojuve1897/followers","following_url":"https://api.github.com/users/solojuve1897/following{/other_user}","gists_url":"https://api.github.com/users/solojuve1897/gists{/gist_id}","starred_url":"https://api.github.com/users/solojuve1897/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/solojuve1897/subscriptions","organizations_url":"https://api.github.com/users/solojuve1897/orgs","repos_url":"https://api.github.com/users/solojuve1897/repos","events_url":"https://api.github.com/users/solojuve1897/events{/privacy}","received_events_url":"https://api.github.com/users/solojuve1897/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-10-20T13:24:39Z","updated_at":"2018-11-19T15:30:34Z","closed_at":null,"author_association":"NONE","body":"Trying to get the phonegap-plugin-push working with Capacitor and have some problems. \r\n\r\nFor starters the project wont build if I first dont in the build.gradle-file change the firebase-messaging version to 17.1.0 instead of 11.6.2. I get the following error with 11.6.2:\r\n\r\n`The library com.google.android.gms:play-services-basement is being requested by various other libraries at [[15.0.1,15.0.1]], but resolves to 11.6.2. Disable the plugin and check your dependencies tree using ./gradlew :app:dependencies.`\r\n\r\nUsing 17.1.0 the project is built and the app launches. \r\n\r\n```\r\nlet push = PushNotification.init({'android': {}})\r\n    push.on('registration', (token) => {\r\n      console.log('Token: ' + token)\r\n      if (token) {\r\n        Device.getInfo().then((result) => {\r\n          _this.registerDeviceForPushNotifications(result.platform, token)\r\n        })\r\n      }\r\n    })\r\n\r\n    push.on('notification', (data) => {\r\n      console.log('Notification: ' + JSON.stringify(data))\r\n    })\r\n```\r\n\r\nThe registration-event is fired after init has been called. When sending a test-notification via my Azure Notification Hub the notification-event isn't fired. The following two lines shows in the logcat though:\r\n\r\n```\r\nV/Capacitor/Plugin/PushNotifications: Notifying listeners for event pushNotificationReceived\r\nD/Capacitor/Plugin/PushNotifications: No listeners found for event pushNotificationReceived\r\n\r\n```\r\nI'm not using Capacitors PushNotifications-plugin in any way.\r\n\r\nAny ideas what's going on? Starting to hate everything regarding Push Notifications..."},"comment":{"url":"https://api.github.com/repos/ionic-team/capacitor/issues/comments/439932759","html_url":"https://github.com/ionic-team/capacitor/issues/897#issuecomment-439932759","issue_url":"https://api.github.com/repos/ionic-team/capacitor/issues/897","id":439932759,"node_id":"MDEyOklzc3VlQ29tbWVudDQzOTkzMjc1OQ==","user":{"login":"JVanloofsvelt","id":6916250,"node_id":"MDQ6VXNlcjY5MTYyNTA=","avatar_url":"https://avatars0.githubusercontent.com/u/6916250?v=4","gravatar_id":"","url":"https://api.github.com/users/JVanloofsvelt","html_url":"https://github.com/JVanloofsvelt","followers_url":"https://api.github.com/users/JVanloofsvelt/followers","following_url":"https://api.github.com/users/JVanloofsvelt/following{/other_user}","gists_url":"https://api.github.com/users/JVanloofsvelt/gists{/gist_id}","starred_url":"https://api.github.com/users/JVanloofsvelt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JVanloofsvelt/subscriptions","organizations_url":"https://api.github.com/users/JVanloofsvelt/orgs","repos_url":"https://api.github.com/users/JVanloofsvelt/repos","events_url":"https://api.github.com/users/JVanloofsvelt/events{/privacy}","received_events_url":"https://api.github.com/users/JVanloofsvelt/received_events","type":"User","site_admin":false},"created_at":"2018-11-19T15:30:34Z","updated_at":"2018-11-19T15:30:34Z","author_association":"NONE","body":"I have tried push.on('pushNotificationReceived', console.log) but that doesn't work either"}}
{"actor":{"display_login":"JVanloofsvelt"}}