mirror of
https://github.com/zhigang1992/react-native-notifications.git
synced 2026-06-19 18:23:26 +08:00
Fix react-native-notifications link path. (#452)
This commit is contained in:
committed by
Yogev Ben David
parent
663109960c
commit
ef8c740aba
@@ -31,12 +31,12 @@ Push notifications on Android are managed and dispatched using [Google's FCM ser
|
||||
|
||||
To set FCM in your app, you must first create a google-services.json file. If you have no existing API project yet, the easiest way to go about in creating one is using [this step-by-step installation process](https://firebase.google.com/docs/android/setup);
|
||||
|
||||
|
||||
#### Step #2: Copy google-services.json
|
||||
|
||||
After creating google-services.json, copy it into your project's android/app folder.
|
||||
|
||||
#### Step #3: Add google-services package to Project/build.gradle
|
||||
|
||||
```gradle
|
||||
buildscript {
|
||||
...
|
||||
@@ -48,6 +48,7 @@ buildscript {
|
||||
```
|
||||
|
||||
#### Step #4: Add firebase-core package and apply google-services plugin in Project/app/build.gradle
|
||||
|
||||
```gradle
|
||||
dependencies {
|
||||
...
|
||||
@@ -58,7 +59,8 @@ apply plugin: 'com.google.gms.google-services'
|
||||
```
|
||||
|
||||
#### Step #5: Link react-native-notifications in Project/android/settings.gradle
|
||||
|
||||
```gradle
|
||||
include ':react-native-notifications'
|
||||
project(':react-native-notifications').projectDir = new File(rootProject.projectDir, '../../../node_modules/react-native-notifications/lib/android/app')
|
||||
```
|
||||
project(':react-native-notifications').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-notifications/lib/android/app')
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user