Skip to content

Android GCM Integration #19

Description

@mrharel

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions