{"action":"created","issue":{"url":"https://api.github.com/repos/intercom/intercom-cordova/issues/224","repository_url":"https://api.github.com/repos/intercom/intercom-cordova","labels_url":"https://api.github.com/repos/intercom/intercom-cordova/issues/224/labels{/name}","comments_url":"https://api.github.com/repos/intercom/intercom-cordova/issues/224/comments","events_url":"https://api.github.com/repos/intercom/intercom-cordova/issues/224/events","html_url":"https://github.com/intercom/intercom-cordova/issues/224","id":277122572,"number":224,"title":"FCM Push notification is not being received","user":{"login":"lucasfeandrade","id":20143777,"avatar_url":"https://avatars0.githubusercontent.com/u/20143777?v=4","gravatar_id":"","url":"https://api.github.com/users/lucasfeandrade","html_url":"https://github.com/lucasfeandrade","followers_url":"https://api.github.com/users/lucasfeandrade/followers","following_url":"https://api.github.com/users/lucasfeandrade/following{/other_user}","gists_url":"https://api.github.com/users/lucasfeandrade/gists{/gist_id}","starred_url":"https://api.github.com/users/lucasfeandrade/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lucasfeandrade/subscriptions","organizations_url":"https://api.github.com/users/lucasfeandrade/orgs","repos_url":"https://api.github.com/users/lucasfeandrade/repos","events_url":"https://api.github.com/users/lucasfeandrade/events{/privacy}","received_events_url":"https://api.github.com/users/lucasfeandrade/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2017-11-27T18:34:41Z","updated_at":"2017-12-19T11:07:00Z","closed_at":null,"author_association":"NONE","body":"## Version info\r\n  - Intercom for Cordova/PhoneGap version: 4.1.2\r\n  - iOS/Android OS version: 4.3.1/6.3.0\r\n  - iOS/Android Device: Nexus 5 API 25\r\n  - SDK Version: 26.0.1\r\n\r\n## Plugin List \r\n  - com.megster.cordova.FileChooser 0.0.0 \"File Chooser\"\r\n  - com.napolitano.cordova.plugin.intent 0.1.3 \"IntentPlugin\"\r\n  - cordova-fabric-plugin 1.1.10 \"cordova-fabric-plugin\"\r\n  - cordova-plugin-android-permissions 1.0.0 \"Permissions\"\r\n  - cordova-plugin-camera 3.0.0 \"Camera\"\r\n  - cordova-plugin-datepicker 0.9.3 \"DatePicker\"\r\n  - cordova-plugin-file 5.0.0 \"File\"\r\n  - cordova-plugin-file-transfer 1.7.0 \"File Transfer\"\r\n  - cordova-plugin-firebase 0.1.19 \"Google Firebase Plugin\"\r\n  - cordova-plugin-google-analytics 1.8.3 \"Google Universal Analytics Plugin\"\r\n  - cordova-plugin-image-picker 1.1.1 \"ImagePicker\"\r\n  - cordova-plugin-inappbrowser 1.7.2 \"InAppBrowser\"\r\n  - cordova-plugin-intercom 4.1.2 \"Intercom\"\r\n  - cordova-plugin-network-information 1.3.4 \"Network Information\"\r\n  - cordova-plugin-splashscreen 4.1.0 \"Splashscreen\"\r\n  - cordova-plugin-statusbar 2.3.0 \"StatusBar\"\r\n  - cordova-plugin-whitelist 1.3.3 \"Whitelist\"\r\n  - cordova-sqlite-storage 2.1.2 \"Cordova sqlite storage plugin\"\r\n  - ionic-plugin-keyboard 2.2.1 \"Keyboard\"\r\n\r\n## project.properties\r\n\r\n  - target=android-26\r\n  - android.library.reference.1=CordovaLib\r\n  - cordova.gradle.include.1=cordova-fabric-plugin/astreaapp-build-extras.gradle\r\n  - cordova.system.library.1=com.android.support:support-v4:24.1.1+\r\n  - cordova.gradle.include.2=cordova-plugin-firebase/astreaapp-build.gradle\r\n  - cordova.system.library.2=com.google.firebase:firebase-core:+\r\n  - cordova.system.library.3=com.google.firebase:firebase-messaging:+\r\n  - cordova.system.library.4=com.google.firebase:firebase-crash:+\r\n  - cordova.system.library.5=com.google.firebase:firebase-config:+\r\n  - cordova.system.library.6=com.google.android.gms:play-services-analytics:+\r\n  - cordova.gradle.include.3=cordova-plugin-intercom/astreaapp-intercom.gradle\r\n  - cordova.gradle.include.4=cordova-plugin-intercom/astreaapp-build-extras-intercom.gradle\r\n\r\n## Expected behavior\r\nA notification should be received when someone sends a message with intercom (Using FCM).\r\n\r\n## Actual behavior\r\nThe message is not displayed (even with app in background) and nothing is displayed in adb logcat. In order to run the app without errors I had to comment the following line inside cordova-plugin-intercom/src/android/intercom.gradle:\r\n\r\n```\r\n// apply plugin: com.google.gms.googleservices.GoogleServicesPlugin\r\n``` \r\n\r\nAnyway the push notification does not work.\r\n\r\nI have also tried to use GCM, it works correctly if I remove the following plugins:\r\n\r\n  - cordova-plugin-firebase 0.1.19 \"Google Firebase Plugin\"\r\n  - cordova-plugin-google-analytics 1.8.3 \"Google Universal Analytics Plugin\"\r\n\r\nBut, when I add it the app crashes. The log displayed at adb logcat is here: \r\n\r\nhttps://gist.github.com/lucasfeandrade/337b26b96484dbeb42c97adfed9c8316\r\n"},"comment":{"url":"https://api.github.com/repos/intercom/intercom-cordova/issues/comments/352715851","html_url":"https://github.com/intercom/intercom-cordova/issues/224#issuecomment-352715851","issue_url":"https://api.github.com/repos/intercom/intercom-cordova/issues/224","id":352715851,"user":{"login":"Upperfoot","id":2132945,"avatar_url":"https://avatars1.githubusercontent.com/u/2132945?v=4","gravatar_id":"","url":"https://api.github.com/users/Upperfoot","html_url":"https://github.com/Upperfoot","followers_url":"https://api.github.com/users/Upperfoot/followers","following_url":"https://api.github.com/users/Upperfoot/following{/other_user}","gists_url":"https://api.github.com/users/Upperfoot/gists{/gist_id}","starred_url":"https://api.github.com/users/Upperfoot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Upperfoot/subscriptions","organizations_url":"https://api.github.com/users/Upperfoot/orgs","repos_url":"https://api.github.com/users/Upperfoot/repos","events_url":"https://api.github.com/users/Upperfoot/events{/privacy}","received_events_url":"https://api.github.com/users/Upperfoot/received_events","type":"User","site_admin":false},"created_at":"2017-12-19T11:07:00Z","updated_at":"2017-12-19T11:07:00Z","author_association":"NONE","body":"I'm having the same problem as well, it did work previously which is very strange. Was something changed recently in the library or the intercom API?"}}
{"actor":{"display_login":"Upperfoot"}}