{"id":1743,"date":"2017-05-26T05:50:22","date_gmt":"2017-05-26T05:50:22","guid":{"rendered":"https:\/\/www.botreetechnologies.com\/blog\/?p=1743"},"modified":"2020-12-02T10:42:40","modified_gmt":"2020-12-02T05:12:40","slug":"how-to-send-push-notification-to-the-android-phones-using-react-native-and-fcm","status":"publish","type":"post","link":"https:\/\/www.botreetechnologies.com\/blog\/how-to-send-push-notification-to-the-android-phones-using-react-native-and-fcm\/","title":{"rendered":"How to Send Push Notification in Android Apps Using React Native and FCM"},"content":{"rendered":"\n<p>Push notification is a very popular communication channel to notify users about important events in the application.<\/p>\n\n\n\n<p>This article is about how to enable push notification to an Android app built on <a href=\"https:\/\/www.botreetechnologies.com\/react-native-development\">React Native<\/a> using Google&#8217;s&nbsp;Firebase Cloud Messaging.<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p><a href=\"https:\/\/firebase.google.com\/docs\/cloud-messaging\/\" target=\"_blank\" rel=\"noopener noreferrer\">Firebase Cloud Messaging (<b>FCM<\/b>)<\/a>&nbsp;is a cross-platform messaging solution that lets you reliably deliver the messages, at no&nbsp;cost!<\/p><\/blockquote>\n\n\n\n<p>FCM is one of the best known ways to notify the client (Android and iOS) via push notification as it is free and backed by Google.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">How to setup&nbsp;FCM?<\/h2>\n\n\n\n<p>Go to the&nbsp;<a href=\"https:\/\/console.firebase.google.com\/?pli=1\" target=\"_blank\" rel=\"noopener noreferrer\">Firebase Console page<\/a>&nbsp;and click on&nbsp;<i>Add new project<\/i><\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"558\" src=\"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2020\/12\/firebase-demo.png\" alt=\"firebase demo app\" class=\"wp-image-12980\" srcset=\"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2020\/12\/firebase-demo.png 800w, https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2020\/12\/firebase-demo-300x209.png 300w, https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2020\/12\/firebase-demo-768x536.png 768w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/figure><\/div>\n\n\n\n<p>After creating a project you will land on the project dashboard.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2020\/12\/firebase-dashboard-1024x536.png\" alt=\"firebase dashboard\" class=\"wp-image-12981\" width=\"768\" height=\"402\" srcset=\"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2020\/12\/firebase-dashboard-1024x536.png 1024w, https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2020\/12\/firebase-dashboard-300x157.png 300w, https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2020\/12\/firebase-dashboard-768x402.png 768w, https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2020\/12\/firebase-dashboard.png 1200w\" sizes=\"auto, (max-width: 768px) 100vw, 768px\" \/><\/figure><\/div>\n\n\n\n<p>Click on&nbsp;<i>Add Firebase to your Android app<\/i>&nbsp;Link which will open following popup.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"694\" height=\"556\" src=\"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2020\/12\/add-app-to-firebase.png\" alt=\"add app to firebase\" class=\"wp-image-12983\" srcset=\"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2020\/12\/add-app-to-firebase.png 694w, https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2020\/12\/add-app-to-firebase-300x240.png 300w\" sizes=\"auto, (max-width: 694px) 100vw, 694px\" \/><\/figure><\/div>\n\n\n\n<p>Enter your Android package name (this name is used for sending push notification so be careful) and register your app. FCM will generate a config file which contains secret tokens of your app. Download this file and put it in your react native app directory as suggested below.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"696\" height=\"648\" src=\"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2020\/12\/firebase-app-dashborad.png\" alt=\"firebase app dashborad\" class=\"wp-image-12984\" srcset=\"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2020\/12\/firebase-app-dashborad.png 696w, https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2020\/12\/firebase-app-dashborad-300x279.png 300w\" sizes=\"auto, (max-width: 696px) 100vw, 696px\" \/><\/figure><\/div>\n\n\n\n<p>Once the config file is placed successfully, restart your app. It will start installing&nbsp;<a href=\"https:\/\/www.npmjs.com\/package\/react-native-fcm\" target=\"_blank\" rel=\"noopener noreferrer\">react-native-fcm<\/a>&nbsp;package. Follow all the steps along to configure this package. You will get steps and information about this package on the&nbsp;<a href=\"https:\/\/github.com\/evollu\/react-native-fcm\" target=\"_blank\" rel=\"noopener noreferrer\">README<\/a>.<\/p>\n\n\n\n<p>Once you successfully setup this package you should test the push notification setup. For that, go to the&nbsp;<a href=\"https:\/\/console.firebase.google.com\/\" target=\"_blank\" rel=\"noopener noreferrer\">firebase-console<\/a>&nbsp;and select your app. Navigate to notification from left side menu, you will see all the message history which is sent from&nbsp;<a href=\"https:\/\/console.firebase.google.com\/\" target=\"_blank\" rel=\"noopener noreferrer\">firebase-console<\/a>. Click on&nbsp;<i>NEW MESSAGE<\/i>&nbsp;button to send a test message.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2020\/12\/notification-window-1024x411.png\" alt=\"notification window\" class=\"wp-image-12985\" width=\"768\" height=\"308\" srcset=\"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2020\/12\/notification-window-1024x411.png 1024w, https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2020\/12\/notification-window-300x120.png 300w, https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2020\/12\/notification-window-768x308.png 768w, https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2020\/12\/notification-window.png 1109w\" sizes=\"auto, (max-width: 768px) 100vw, 768px\" \/><\/figure><\/div>\n\n\n\n<p>If you see your test message in above listing with status delivered then the setup is complete! Congratulations!!<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p>Read Also:&nbsp;<a href=\"https:\/\/www.botreetechnologies.com\/blog\/how-to-build-a-chatbot-in-react-native-using-react-native-chatbot\" target=\"_blank\" rel=\"noopener noreferrer\">How to build a Chatbot in React Native&nbsp;using React-Native-Chatbot<\/a>?<\/p><\/blockquote>\n\n\n\n<h3 class=\"wp-block-heading\">Setup FCM in React-Native App<\/h3>\n\n\n\n<p>First we need to create a separate class(<i>PushNotification<\/i>) which handles all notification which is coming from server app(e.g rails or php)<\/p>\n\n\n\n<p><script src=\"https:\/\/gist.github.com\/ShaileshPrajapati-BTC\/826b7bc7357081082ed957b75d37276d.js\"><\/script><\/p>\n\n\n\n<p>We need to initialize FCM when app is initialized (<i>componentDidMount<\/i>) so the app is able to receive notifications from server side.<\/p>\n\n\n\n<p><script src=\"https:\/\/gist.github.com\/ShaileshPrajapati-BTC\/ce072e816e4be5cd888879160990fb18.js\"><\/script><\/p>\n\n\n\n<p>This code generates FCM token(line 14) and passes this token to the server. We need to ensure whenever the FCM token is updated we need to update it on the server side as well. If fcm_token is not updated when the app will not receive any notification from the server side.<\/p>\n\n\n\n<p>Thanks for Reading&#8230;<\/p>\n\n\n\n<p><code>Android<\/code>&nbsp;<code>React-native<\/code>&nbsp;<code>FCM<\/code>&nbsp;<code>Push notification<\/code><\/p>\n\n\n\n<p><a href=\"https:\/\/www.botreetechnologies.com\/react-native-development\"><b>Click here for more<\/b> blogs<\/a>\u2026<\/p>\n\n\n\n<p><strong><a href=\"https:\/\/www.botreetechnologies.com\/contact\">Consulting is free<\/a>\u00a0\u2013 let us help you grow!<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Push notification is a very popular communication channel to notify&#8230;<\/p>\n","protected":false},"author":19,"featured_media":12979,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[72,10],"tags":[],"class_list":["post-1743","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-react-native","category-technology"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.2 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Send Push Notification in Android Apps Using React Native and FCM<\/title>\n<meta name=\"description\" content=\"This article is about how to send push notification to the Anroid app built on React Native using Google\u2019s Firebase Cloud Messaging. Click here to read more.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.botreetechnologies.com\/blog\/how-to-send-push-notification-to-the-android-phones-using-react-native-and-fcm\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Send Push Notification in Android Apps Using React Native and FCM\" \/>\n<meta property=\"og:description\" content=\"This article is about how to send push notification to the Anroid app built on React Native using Google\u2019s Firebase Cloud Messaging. Click here to read more.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.botreetechnologies.com\/blog\/how-to-send-push-notification-to-the-android-phones-using-react-native-and-fcm\/\" \/>\n<meta property=\"og:site_name\" content=\"BoTree Technologies\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/BoTreeTechnologies\/\" \/>\n<meta property=\"article:published_time\" content=\"2017-05-26T05:50:22+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2020-12-02T05:12:40+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2017\/05\/push-notification-android-phone.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1920\" \/>\n\t<meta property=\"og:image:height\" content=\"1280\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Shailesh Prajapati\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@BoTreeTech\" \/>\n<meta name=\"twitter:site\" content=\"@BoTreeTech\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Shailesh Prajapati\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.botreetechnologies.com\/blog\/how-to-send-push-notification-to-the-android-phones-using-react-native-and-fcm\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.botreetechnologies.com\/blog\/how-to-send-push-notification-to-the-android-phones-using-react-native-and-fcm\/\"},\"author\":{\"name\":\"Shailesh Prajapati\",\"@id\":\"https:\/\/www.botreetechnologies.com\/blog\/#\/schema\/person\/f03c8ab9b1eaf58b1ac4e6ec16bd009d\"},\"headline\":\"How to Send Push Notification in Android Apps Using React Native and FCM\",\"datePublished\":\"2017-05-26T05:50:22+00:00\",\"dateModified\":\"2020-12-02T05:12:40+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.botreetechnologies.com\/blog\/how-to-send-push-notification-to-the-android-phones-using-react-native-and-fcm\/\"},\"wordCount\":446,\"commentCount\":1,\"image\":{\"@id\":\"https:\/\/www.botreetechnologies.com\/blog\/how-to-send-push-notification-to-the-android-phones-using-react-native-and-fcm\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2017\/05\/push-notification-android-phone.jpg\",\"articleSection\":[\"React Native\",\"Technology\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.botreetechnologies.com\/blog\/how-to-send-push-notification-to-the-android-phones-using-react-native-and-fcm\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.botreetechnologies.com\/blog\/how-to-send-push-notification-to-the-android-phones-using-react-native-and-fcm\/\",\"url\":\"https:\/\/www.botreetechnologies.com\/blog\/how-to-send-push-notification-to-the-android-phones-using-react-native-and-fcm\/\",\"name\":\"How to Send Push Notification in Android Apps Using React Native and FCM\",\"isPartOf\":{\"@id\":\"https:\/\/www.botreetechnologies.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.botreetechnologies.com\/blog\/how-to-send-push-notification-to-the-android-phones-using-react-native-and-fcm\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.botreetechnologies.com\/blog\/how-to-send-push-notification-to-the-android-phones-using-react-native-and-fcm\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2017\/05\/push-notification-android-phone.jpg\",\"datePublished\":\"2017-05-26T05:50:22+00:00\",\"dateModified\":\"2020-12-02T05:12:40+00:00\",\"author\":{\"@id\":\"https:\/\/www.botreetechnologies.com\/blog\/#\/schema\/person\/f03c8ab9b1eaf58b1ac4e6ec16bd009d\"},\"description\":\"This article is about how to send push notification to the Anroid app built on React Native using Google\u2019s Firebase Cloud Messaging. Click here to read more.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.botreetechnologies.com\/blog\/how-to-send-push-notification-to-the-android-phones-using-react-native-and-fcm\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.botreetechnologies.com\/blog\/how-to-send-push-notification-to-the-android-phones-using-react-native-and-fcm\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.botreetechnologies.com\/blog\/how-to-send-push-notification-to-the-android-phones-using-react-native-and-fcm\/#primaryimage\",\"url\":\"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2017\/05\/push-notification-android-phone.jpg\",\"contentUrl\":\"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2017\/05\/push-notification-android-phone.jpg\",\"width\":1920,\"height\":1280,\"caption\":\"Send Push Notification in Android Apps\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.botreetechnologies.com\/blog\/how-to-send-push-notification-to-the-android-phones-using-react-native-and-fcm\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.botreetechnologies.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Send Push Notification in Android Apps Using React Native and FCM\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.botreetechnologies.com\/blog\/#website\",\"url\":\"https:\/\/www.botreetechnologies.com\/blog\/\",\"name\":\"BoTree Technologies\",\"description\":\"Committed to inspire generation.\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.botreetechnologies.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.botreetechnologies.com\/blog\/#\/schema\/person\/f03c8ab9b1eaf58b1ac4e6ec16bd009d\",\"name\":\"Shailesh Prajapati\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2020\/10\/shailesh-prajapati-150x150.png\",\"url\":\"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2020\/10\/shailesh-prajapati-150x150.png\",\"contentUrl\":\"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2020\/10\/shailesh-prajapati-150x150.png\",\"caption\":\"Shailesh Prajapati\"},\"description\":\"Shailesh is a React JS and Ruby on Rails Developer. He loves Ruby, JavaScript, TypeScript, reading and writing blogs, problem-solving and taking ownership of work. Apart from coding, he likes to listen to songs, gyming, playing cricket and traveling.\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Send Push Notification in Android Apps Using React Native and FCM","description":"This article is about how to send push notification to the Anroid app built on React Native using Google\u2019s Firebase Cloud Messaging. Click here to read more.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.botreetechnologies.com\/blog\/how-to-send-push-notification-to-the-android-phones-using-react-native-and-fcm\/","og_locale":"en_US","og_type":"article","og_title":"How to Send Push Notification in Android Apps Using React Native and FCM","og_description":"This article is about how to send push notification to the Anroid app built on React Native using Google\u2019s Firebase Cloud Messaging. Click here to read more.","og_url":"https:\/\/www.botreetechnologies.com\/blog\/how-to-send-push-notification-to-the-android-phones-using-react-native-and-fcm\/","og_site_name":"BoTree Technologies","article_publisher":"https:\/\/www.facebook.com\/BoTreeTechnologies\/","article_published_time":"2017-05-26T05:50:22+00:00","article_modified_time":"2020-12-02T05:12:40+00:00","og_image":[{"width":1920,"height":1280,"url":"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2017\/05\/push-notification-android-phone.jpg","type":"image\/jpeg"}],"author":"Shailesh Prajapati","twitter_card":"summary_large_image","twitter_creator":"@BoTreeTech","twitter_site":"@BoTreeTech","twitter_misc":{"Written by":"Shailesh Prajapati","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.botreetechnologies.com\/blog\/how-to-send-push-notification-to-the-android-phones-using-react-native-and-fcm\/#article","isPartOf":{"@id":"https:\/\/www.botreetechnologies.com\/blog\/how-to-send-push-notification-to-the-android-phones-using-react-native-and-fcm\/"},"author":{"name":"Shailesh Prajapati","@id":"https:\/\/www.botreetechnologies.com\/blog\/#\/schema\/person\/f03c8ab9b1eaf58b1ac4e6ec16bd009d"},"headline":"How to Send Push Notification in Android Apps Using React Native and FCM","datePublished":"2017-05-26T05:50:22+00:00","dateModified":"2020-12-02T05:12:40+00:00","mainEntityOfPage":{"@id":"https:\/\/www.botreetechnologies.com\/blog\/how-to-send-push-notification-to-the-android-phones-using-react-native-and-fcm\/"},"wordCount":446,"commentCount":1,"image":{"@id":"https:\/\/www.botreetechnologies.com\/blog\/how-to-send-push-notification-to-the-android-phones-using-react-native-and-fcm\/#primaryimage"},"thumbnailUrl":"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2017\/05\/push-notification-android-phone.jpg","articleSection":["React Native","Technology"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.botreetechnologies.com\/blog\/how-to-send-push-notification-to-the-android-phones-using-react-native-and-fcm\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.botreetechnologies.com\/blog\/how-to-send-push-notification-to-the-android-phones-using-react-native-and-fcm\/","url":"https:\/\/www.botreetechnologies.com\/blog\/how-to-send-push-notification-to-the-android-phones-using-react-native-and-fcm\/","name":"How to Send Push Notification in Android Apps Using React Native and FCM","isPartOf":{"@id":"https:\/\/www.botreetechnologies.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.botreetechnologies.com\/blog\/how-to-send-push-notification-to-the-android-phones-using-react-native-and-fcm\/#primaryimage"},"image":{"@id":"https:\/\/www.botreetechnologies.com\/blog\/how-to-send-push-notification-to-the-android-phones-using-react-native-and-fcm\/#primaryimage"},"thumbnailUrl":"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2017\/05\/push-notification-android-phone.jpg","datePublished":"2017-05-26T05:50:22+00:00","dateModified":"2020-12-02T05:12:40+00:00","author":{"@id":"https:\/\/www.botreetechnologies.com\/blog\/#\/schema\/person\/f03c8ab9b1eaf58b1ac4e6ec16bd009d"},"description":"This article is about how to send push notification to the Anroid app built on React Native using Google\u2019s Firebase Cloud Messaging. Click here to read more.","breadcrumb":{"@id":"https:\/\/www.botreetechnologies.com\/blog\/how-to-send-push-notification-to-the-android-phones-using-react-native-and-fcm\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.botreetechnologies.com\/blog\/how-to-send-push-notification-to-the-android-phones-using-react-native-and-fcm\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.botreetechnologies.com\/blog\/how-to-send-push-notification-to-the-android-phones-using-react-native-and-fcm\/#primaryimage","url":"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2017\/05\/push-notification-android-phone.jpg","contentUrl":"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2017\/05\/push-notification-android-phone.jpg","width":1920,"height":1280,"caption":"Send Push Notification in Android Apps"},{"@type":"BreadcrumbList","@id":"https:\/\/www.botreetechnologies.com\/blog\/how-to-send-push-notification-to-the-android-phones-using-react-native-and-fcm\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.botreetechnologies.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to Send Push Notification in Android Apps Using React Native and FCM"}]},{"@type":"WebSite","@id":"https:\/\/www.botreetechnologies.com\/blog\/#website","url":"https:\/\/www.botreetechnologies.com\/blog\/","name":"BoTree Technologies","description":"Committed to inspire generation.","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.botreetechnologies.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.botreetechnologies.com\/blog\/#\/schema\/person\/f03c8ab9b1eaf58b1ac4e6ec16bd009d","name":"Shailesh Prajapati","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2020\/10\/shailesh-prajapati-150x150.png","url":"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2020\/10\/shailesh-prajapati-150x150.png","contentUrl":"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2020\/10\/shailesh-prajapati-150x150.png","caption":"Shailesh Prajapati"},"description":"Shailesh is a React JS and Ruby on Rails Developer. He loves Ruby, JavaScript, TypeScript, reading and writing blogs, problem-solving and taking ownership of work. Apart from coding, he likes to listen to songs, gyming, playing cricket and traveling."}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/www.botreetechnologies.com\/blog\/wp-json\/wp\/v2\/posts\/1743","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.botreetechnologies.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.botreetechnologies.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.botreetechnologies.com\/blog\/wp-json\/wp\/v2\/users\/19"}],"replies":[{"embeddable":true,"href":"https:\/\/www.botreetechnologies.com\/blog\/wp-json\/wp\/v2\/comments?post=1743"}],"version-history":[{"count":2,"href":"https:\/\/www.botreetechnologies.com\/blog\/wp-json\/wp\/v2\/posts\/1743\/revisions"}],"predecessor-version":[{"id":12987,"href":"https:\/\/www.botreetechnologies.com\/blog\/wp-json\/wp\/v2\/posts\/1743\/revisions\/12987"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.botreetechnologies.com\/blog\/wp-json\/wp\/v2\/media\/12979"}],"wp:attachment":[{"href":"https:\/\/www.botreetechnologies.com\/blog\/wp-json\/wp\/v2\/media?parent=1743"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.botreetechnologies.com\/blog\/wp-json\/wp\/v2\/categories?post=1743"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.botreetechnologies.com\/blog\/wp-json\/wp\/v2\/tags?post=1743"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}