react-native-pusher-push-notifications icon indicating copy to clipboard operation
react-native-pusher-push-notifications copied to clipboard

Android not receiving notifications react-native (0.78)

Open Sulaiman122 opened this issue 7 months ago • 0 comments
trafficstars

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

Sulaiman122 avatar Apr 06 '25 10:04 Sulaiman122