From 508366dab7030e9ae9435b9741a0088a2e59ecbe Mon Sep 17 00:00:00 2001 From: Libin Lu <9213224+evollu@users.noreply.github.com> Date: Sun, 14 Oct 2018 15:41:13 -0700 Subject: [PATCH] Update README.md --- README.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 4e84db7..a07c84c 100644 --- a/README.md +++ b/README.md @@ -738,13 +738,15 @@ fetch('https://fcm.googleapis.com/fcm/send', { ## Channels -Right now for Android Orion 8 or API 26 is important to use channels. To make it working first of all add default meta data to `AndroidManifest`: +Right now for Android Orion 8 or API 26 is important to use channels. Firebase will create a default channel for you or you can custom your default channel for Firebase notifications by adding default meta data to `AndroidManifest`: ``` ``` +more reading on [official docs](https://firebase.google.com/docs/cloud-messaging/android/client) -Now you should `createNotificationChannel` on init app. Its creates if not exists yet. +However it is essential to create a notification channel if you need to show local notification or use `custom_notification`. +First you should `createNotificationChannel` on init app. Its creates if not exists yet. ``` FCM.createNotificationChannel({ @@ -767,7 +769,7 @@ customNotification = { icon: 'ic_launcher', show_in_foreground: true, vibrate: 500, - channel: 'car_status', + channel: 'car_status', <==== action: 'android.intent.action.MAIN', }; ``` -- 2.26.2