Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to check google play services version and firebase version in react-native project?

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?

like image 501
yashatreya Avatar asked Jan 01 '23 13:01

yashatreya


2 Answers

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.

like image 106
Mohsen Vahabzadeh Avatar answered Jan 13 '23 13:01

Mohsen Vahabzadeh


@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

like image 24
Sanka Sanjeewa Avatar answered Jan 13 '23 15:01

Sanka Sanjeewa