From 09f4f2e0619787b604dc12e9f571838effbb7274 Mon Sep 17 00:00:00 2001 From: Libin Lu Date: Tue, 13 Sep 2016 16:58:27 -0400 Subject: [PATCH] Update README.md --- README.md | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index e8e9d10..5a831d2 100644 --- a/README.md +++ b/README.md @@ -330,16 +330,15 @@ Since Lollipop, the push notification icon is required to be all white, otherwis #### I am using Proguard You need to add this to your `android/app/proguard-rules.pro`: - -#### How do I tell if user clicks the notification banner? -- Check open from tray flag in notification. It will be either 0 or 1 for iOS and undefined or 1 for android. I decide for iOS base on [this](http://stackoverflow.com/questions/20569201/remote-notification-method-called-twice), and for android I set it if notification is triggered by intent change. - ``` # Google Play Services -keep class com.google.android.gms.** { *; } -dontwarn com.google.android.gms.** ``` +#### How do I tell if user clicks the notification banner? +- Check open from tray flag in notification. It will be either 0 or 1 for iOS and undefined or 1 for android. I decide for iOS base on [this](http://stackoverflow.com/questions/20569201/remote-notification-method-called-twice), and for android I set it if notification is triggered by intent change. + #### Android notification doesn't vibrate/show head-up display etc All available features are [here](https://firebase.google.com/docs/cloud-messaging/http-server-ref#notification-payload-support). FCM may add more support in the future but there is no timeline. If you need these features now, send notification with `data` only and creating notification locally is the only way -- 2.26.2