Skip to content

Android not receiving notifications react-native (0.78) #131

@Sulaiman122

Description

@Sulaiman122

Hello

iOS worked but on android I tried to setup, It build and run successfully also subscribed to instance without any issue
but don't receive any notification

Steps I tried:

1- on real device

2- notification permission granted

3- google-services.json added with same package name

4- android/build.gradle
dependencies {
classpath 'com.google.gms:google-services:4.3.8'
// here tried 4.3.10/4.3.15/4.4.0

5- android/app/build.gradle
implementation ("com.google.firebase:firebase-messaging:22.0.0") //tried 21.1.0
implementation 'com.pusher:push-notifications-android:1.10.0' //tried 1.9.0
}
apply plugin: "com.google.gms.google-services"

6- gradle.properties
I had to add
android.enableJetifier=true

7- Setting.gradle
include ':react-native-pusher-push-notifications'
project(':react-native-pusher-push-notifications').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-pusher-push-notifications/android')

8- I even tried to bump sdk version on build.gradle in the package on node_modules

Can someone explain if he manage to get it to work on react-native 0.78.0, How did he set it up

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions