0
votes

i tired to make push notification with the normal expo notification and i could get the token but link it with firebase and couldn't send notification from backend,

then i did expo eject so i can use react-native-firebase and i did all steps in the documentation here: https://v5.rnfirebase.io/docs/v5.x.x and all cloud messaging and notification steps from the right sidebar but i got that error in the picture below

Note: I use wordpress as a backend to send push notification

enter image description here

2

2 Answers

1
votes

Why do you need to eject if you are using Expo tokens ?

Maybe you can try to upgrade to Expo SDK 37 and use FirebaseCore : https://docs.expo.io/versions/latest/sdk/firebase-core/

0
votes

First, Expo push notifications is much better than current V6 firebase push notifications, as it will not provide notification data to app, to make it happen, you have to do a lot of circus. If that was the only reason you are ejecting, don't do that.

Second, That error is saying you did not configure firebase properly, follow the instructions properly from the react native firebase doc.