Skip to content

Commit

Permalink
[cloud_messaging] Added step for Android instructions (firebase#1593)
Browse files Browse the repository at this point in the history
* Changed example for new step
  • Loading branch information
andermoran authored and collinjackson committed Dec 10, 2019
1 parent b13f531 commit ef19bba
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
4 changes: 4 additions & 0 deletions packages/firebase_messaging/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 6.0.6

* Updated README instructions for Android.

## 6.0.5

* Add import for UserNotifications on iOS.
Expand Down
6 changes: 5 additions & 1 deletion packages/firebase_messaging/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ for more.

By default background messaging is not enabled. To handle messages in the background:

1. Add an Application.java class to your app in the same directory as your `MainActivity.java`. This is typically found in `<app-name>/android/app/src/main/java/<app-organization-path>/`.
1. Add an `Application.java` class to your app in the same directory as your `MainActivity.java`. This is typically found in `<app-name>/android/app/src/main/java/<app-organization-path>/`.

```
package io.flutter.plugins.firebasemessagingexample;
Expand All @@ -85,6 +85,10 @@ By default background messaging is not enabled. To handle messages in the backgr
}
}
```
1. In `Application.java`, make sure to change `package io.flutter.plugins.firebasemessagingexample;` to your package's identifier. Your package's identifier should be something like `com.domain.myapplication`.
```
package com.domain.myapplication;
```
1. Set name property of application in `AndroidManifest.xml`. This is typically found in `<app-name>/android/app/src/main/`.
```
<application android:name=".Application" ...>
Expand Down
2 changes: 1 addition & 1 deletion packages/firebase_messaging/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ description: Flutter plugin for Firebase Cloud Messaging, a cross-platform
messaging solution that lets you reliably deliver messages on Android and iOS.
author: Flutter Team <[email protected]>
homepage: https://github.com/FirebaseExtended/flutterfire/tree/master/packages/firebase_messaging
version: 6.0.5
version: 6.0.6

flutter:
plugin:
Expand Down

0 comments on commit ef19bba

Please sign in to comment.