Skip to content

Commit

Permalink
update to push-notifications-android:1.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike Bridge committed Jan 23, 2019
1 parent e448f88 commit 9777084
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 21 deletions.
26 changes: 5 additions & 21 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,22 +68,7 @@ instructions (summarized below):
}
```

2. Update `android/app/src/main/AndroidManifest.xml` with:

```xml
<manifest>
<application>
...
<service android:name=".NotificationsMessagingService">
<intent-filter android:priority="1">
<action android:name="com.google.firebase.MESSAGING_EVENT" />
</intent-filter>
</service>
</application>
</manifest>
```

3. Update `android/build.gradle`
2. Update `android/build.gradle`

```gradle
buildscript {
Expand All @@ -96,20 +81,19 @@ buildscript {
}
```


4. Add this to `android/app/build.gradle`:
3. Add this to `android/app/build.gradle`:

```gradle
dependencies {
compile project(':react-native-pusher-push-notifications')
// ...
implementation 'com.pusher:push-notifications-android:1.0.1'
implementation 'com.pusher:push-notifications-android:1.0.2'
}
```

5. Set up `android/app/google-services.json`
4. Set up `android/app/google-services.json`

6. Add `RNPusherPushNotificationsPackage` to `MainApplication.java`:
5. Add `RNPusherPushNotificationsPackage` to `MainApplication.java`:

```java
import com.b8ne.RNPusherPushNotifications.RNPusherPushNotificationsPackage;
Expand Down
1 change: 1 addition & 0 deletions android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ buildscript {
allprojects {
repositories {
mavenLocal()
google()
jcenter()
maven {
url 'https://maven.google.com'
Expand Down

0 comments on commit 9777084

Please sign in to comment.