question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Android GCM Integration

See original GitHub issue

I 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:closed
  • Created 7 years ago
  • Comments:20 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
jplethiercommented, Jul 8, 2016

@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.

2reactions
evanjmgcommented, Mar 18, 2018

@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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found