Android GCM Integration
See original GitHub issueI managed to integrate the iphone push notifications but somehow it wasn’t so easy for the Android. I guess this is probably since i am a newbee for android and mobile dev.
The app is compiling but no push notification are displayed. I checked the errors from the logcat and found the following error:
intercom-sdk-gcm module not found
I am not sure how to add this module to the gradle file, since just adding it
dependencies {
compile project(':react-native-intercom')
compile fileTree(dir: "libs", include: ["*.jar"])
compile "com.android.support:appcompat-v7:23.0.1"
compile 'com.google.android.gms:play-services-gcm:8.4.0'
compile "com.facebook.react:react-native:+" // From node_modules
compile project(':react-native-vector-icons')
compile project(':react-native-maps')
compile project(':react-native-share')
compile project(':intercom-sdk-gcm') // <-- i add this
}
throws an error Project with path ':intercom-sdk-gcm' could not be found in project ':app'.
what am i doing wrong? Isn’t the react-native-intercom adds the gcm module already?
Issue Analytics
- State:
- Created 7 years ago
- Comments:20 (3 by maintainers)
Top Results From Across the Web
Cloud Messaging - Google Developers
For equivalent functionality, use Firebase Cloud Messaging (FCM), which inherits the reliable and scalable GCM infrastructure, plus many new features. YouTube.
Read more >Google Cloud Messaging Integration for Android - GitHub
Create google cloud messaging backend module in your Android app. File -> New -> New Module -> Google Cloud Message -> Next ->...
Read more >How do I use Google Cloud Messaging on Android?
GCM is integrated with the Android operating system and can be used to send and receive messages from any app on an Android...
Read more >Set up a Firebase Cloud Messaging client app on Android
Set up a Firebase Cloud Messaging client app on Android · On this page · Set up the SDK · Edit your app...
Read more >GCM (Google Cloud Message) Integration - Android
The purpose of GCM Integration is to add Android Push Notifications using Google. Cloud Messaging (GCM) feature in an android app.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@mrharel I follow the instructions of intercom to configure sdk for GCM. Is there anything else needed to do?
I did all the instructions and still are not getting this working with intercom, I am trying to call
Intercom.registerForPush
after I registered a identified user on intercom, but this is throwing an error saying that this method does not exists for IntercomWrapper.@mtkopone you don’t need to register for push notifications in android. You only need to send the gcm sender id/firebase token to intercom