I am trying to install rn-push-notifications for which I need the google play services version and firebase version. Could you please assist me?
Asked
Active
Viewed 6,601 times
5

AlexZeDim
- 3,520
- 2
- 28
- 64

yashatreya
- 782
- 1
- 9
- 32
-
I think you could use any compatible versions. For example : `googlePlayServicesVersion = "16.1.0"` & `firebaseVersion = "17.3.4"` – Mohsen Vahabzadeh Oct 13 '20 at 06:51
2 Answers
11
I use this method:
First run ./gradlew app:dependencies
. You could send its output to a file for further searching.
Then search in the output for version of com.google.android.gms:play-services-base and com.google.firebase:firebase-core.

Mohsen Vahabzadeh
- 320
- 3
- 9
9
@Mohsen's answer was helpful to me to implement a react native app which has push notifications.
First I installed dependency react-native-push-notification
Then I navigated to the android folder and ran this command gradlew app:dependencies
Form the output of terminal, I found googlePlayServicesVersion
and firebaseMessagingVersion
by searching
com.google.android.gms:play-services-basement and
com.google.firebase:firebase-messaging
Further, to find supportLibVersion
this answer was helped

Sanka Sanjeewa
- 1,993
- 14
- 16