A
A
Alexey1002019-01-11 09:46:25
Push technologies
Alexey100, 2019-01-11 09:46:25

How to setup firebase PUSH notifications in react-native?

Hello.
I'm trying to set up push notifications in my app created via create-react-native-app .
I installed the react-native-firebase package , but I get an error when importing:

RNFirebase core module was not found natively on Android, ensure you have correctly added the RNFirebase and Firebase gradle dependencies to your `android/app/build.gradle` file.

I do according to this instruction , it is necessary to change build.gradle according to it .
Tell me where to find it in react-native ?
Or maybe there is some way to do without it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
davidnum95, 2019-01-11
@davidnum95

As far as I remember create-react-native-app is an expo that doesn't support native modules. https://docs.expo.io/versions/latest/guides/using-fcm

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question