{"id":22887,"date":"2018-11-27T09:43:59","date_gmt":"2018-11-27T09:43:59","guid":{"rendered":"https:\/\/www.knowband.com\/blog\/?p=22887\/"},"modified":"2018-11-27T20:13:59","modified_gmt":"2018-11-27T09:43:59","slug":"send-push-notification-server","status":"publish","type":"post","link":"https:\/\/www.knowband.com\/blog\/tutorials\/send-push-notification-server\/","title":{"rendered":"How to send push notification from server?"},"content":{"rendered":"<h2 style=\"font-size: 22px; margin-bottom: 15px; text-align: justify;\"><strong>What are push notifications?<\/strong><\/h2>\n<p>Push notifications are the messages that are pushed to mobile from another platform than\u00a0the receiving device. Let us consider any mobile app either closed or open. We get some notification from server irrespective of the app is open\/closed\/minimised. The only condition is that the app should be installed. In such case, we trigger notifications from web server say Firebase. We are pushing the notifications to mobile app from server. Hence these are called push notification.<\/p>\n<p>Firebase provides\u00a0us API(s) that can be triggered to send the push notification to any device.<\/p>\n<h2 style=\"font-size: 22px; margin-bottom: 15px; text-align: justify;\"><strong>Sending Push Notification using Firebase<\/strong><\/h2>\n<p>We can trigger below API provided by the Firebase to send a push notification to any device.<\/p>\n<h3 style=\"font-size: 18px; margin-bottom: 15px; text-align: justify;\"><strong>API URL :<\/strong><\/h3>\n<p><a class=\"external\" href=\"https:\/\/fcm.googleapis.com\/fcm\/send\">https:\/\/fcm.googleapis.com\/fcm\/send<\/a><\/p>\n<h3 style=\"font-size: 18px; margin-bottom: 15px; text-align: justify;\"><strong>Headers :<\/strong><\/h3>\n<p>Content-Type:application\/json<\/p>\n<p>Authorization:key=AAAAR8kVIU:APA91bGaZe_uSKd2EtATPVoIUFGW6E3EwzcfsurUtjMIMIsxdTICC2Wl4BDtiWVupueBaJoQbb1JjAjDDEhDEWXWf3Cp_WXBAO1LkOUwtYPnj7XjeEFW1jqhzW8J1g1IwLinL42t8u<\/p>\n<h3 style=\"font-size: 18px; margin-bottom: 15px; text-align: justify;\"><strong>Body :<\/strong><\/h3>\n<pre class=\"brush: actionscript3; gutter: true\">{\r\n&quot;to&quot;:&quot;fqU6X2UAdiI:APA91bEHIZ2MwdsTdIW3_Sk_hvH9ZHbbbzJln4A8n6gYyYH71V5dlxazxWWejcafEOEIHc1mvwxauVodIOgdXrSiaxU0mfyPTKWr47k-8SwlyY30_Mxh8NTA2winTE16JO-KbajD&quot;,\r\n&quot;priority&quot;:&quot;high&quot;,\r\n&quot;mutable_content&quot;:true,\r\n&quot;content_available&quot;:true,\r\n&quot;notification&quot;:{\r\n&quot;title&quot;:&quot;Sample title&quot;,\r\n&quot;body&quot;:&quot;Sample Body Sample Body&quot;\r\n},\r\n&quot;data&quot;:{\r\n&quot;title&quot;:&quot;Title Title&quot;,\r\n&quot;body&quot;:&quot;Sample body Sample Body&quot;,\r\n&quot;image&quot;:&quot;Image Link&quot;,\r\n&quot;description&quot;:&quot;Sample Description&quot;\r\n}\r\n}\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>What are push notifications? Push notifications are the messages that are pushed to mobile from another platform than\u00a0the receiving device. Let us consider any mobile app either closed or open. We get some notification from server irrespective of the app is open\/closed\/minimised. The only condition is that the app should be installed. In such case, [&hellip;]<\/p>\n","protected":false},"author":11,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_kbui_enabled":"","footnotes":""},"categories":[7507],"tags":[8077,8075,8073,8078,8076,8074],"class_list":["post-22887","post","type-post","status-publish","format-standard","hentry","category-tutorials","tag-firebase-push-notification","tag-push-notification-service","tag-send-push-notification","tag-send-push-notification-online","tag-send-push-notification-to-firebase","tag-send-push-notification-to-server"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.6 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to send push notification from server? - Knowband Blog | Ecommerce Modules<\/title>\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.knowband.com\/blog\/tutorials\/send-push-notification-server\/\" \/>\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 from server? - Knowband Blog | Ecommerce Modules\" \/>\n<meta property=\"og:description\" content=\"What are push notifications? Push notifications are the messages that are pushed to mobile from another platform than\u00a0the receiving device. Let us consider any mobile app either closed or open. We get some notification from server irrespective of the app is open\/closed\/minimised. The only condition is that the app should be installed. In such case, [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.knowband.com\/blog\/tutorials\/send-push-notification-server\/\" \/>\n<meta property=\"og:site_name\" content=\"Knowband Blog | Ecommerce Modules\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/Knowband\" \/>\n<meta property=\"article:published_time\" content=\"2018-11-27T09:43:59+00:00\" \/>\n<meta name=\"author\" content=\"Akash Sharma\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@KnowbandPlugin\" \/>\n<meta name=\"twitter:site\" content=\"@KnowbandPlugin\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Akash Sharma\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/tutorials\\\/send-push-notification-server\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/tutorials\\\/send-push-notification-server\\\/\"},\"author\":{\"name\":\"Akash Sharma\",\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/#\\\/schema\\\/person\\\/ef7cba7baa8b174cc01029e0b203bddc\"},\"headline\":\"How to send push notification from server?\",\"datePublished\":\"2018-11-27T09:43:59+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/tutorials\\\/send-push-notification-server\\\/\"},\"wordCount\":164,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/#organization\"},\"keywords\":[\"Firebase Push Notification\",\"Push notification service\",\"send push notification\",\"send push notification online\",\"send push notification to Firebase\",\"Send Push Notification to Server\"],\"articleSection\":[\"Tutorials\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/tutorials\\\/send-push-notification-server\\\/\",\"url\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/tutorials\\\/send-push-notification-server\\\/\",\"name\":\"How to send push notification from server? - Knowband Blog | Ecommerce Modules\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/#website\"},\"datePublished\":\"2018-11-27T09:43:59+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/tutorials\\\/send-push-notification-server\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.knowband.com\\\/blog\\\/tutorials\\\/send-push-notification-server\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/tutorials\\\/send-push-notification-server\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to send push notification from server?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/#website\",\"url\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/\",\"name\":\"Knowband Blog | Ecommerce Modules\",\"description\":\"Magento, Prestashop, Opencart, Shopify\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/#organization\",\"name\":\"Knowband Blog | Ecommerce Modules\",\"url\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/wp-content\\\/uploads\\\/2016\\\/09\\\/cropped-knowband_logo-v2.png\",\"contentUrl\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/wp-content\\\/uploads\\\/2016\\\/09\\\/cropped-knowband_logo-v2.png\",\"width\":153,\"height\":61,\"caption\":\"Knowband Blog | Ecommerce Modules\"},\"image\":{\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/Knowband\",\"https:\\\/\\\/x.com\\\/KnowbandPlugin\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/#\\\/schema\\\/person\\\/ef7cba7baa8b174cc01029e0b203bddc\",\"name\":\"Akash Sharma\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/10\\\/1392073474142574760-150x150.jpg\",\"url\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/10\\\/1392073474142574760-150x150.jpg\",\"contentUrl\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/10\\\/1392073474142574760-150x150.jpg\",\"caption\":\"Akash Sharma\"},\"description\":\"I'm Akash Sharma, an engineering graduate and software developer by profession. Challenges fascinate me and I like solving them.\",\"url\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/author\\\/asharma\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to send push notification from server? - Knowband Blog | Ecommerce Modules","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.knowband.com\/blog\/tutorials\/send-push-notification-server\/","og_locale":"en_US","og_type":"article","og_title":"How to send push notification from server? - Knowband Blog | Ecommerce Modules","og_description":"What are push notifications? Push notifications are the messages that are pushed to mobile from another platform than\u00a0the receiving device. Let us consider any mobile app either closed or open. We get some notification from server irrespective of the app is open\/closed\/minimised. The only condition is that the app should be installed. In such case, [&hellip;]","og_url":"https:\/\/www.knowband.com\/blog\/tutorials\/send-push-notification-server\/","og_site_name":"Knowband Blog | Ecommerce Modules","article_publisher":"https:\/\/www.facebook.com\/Knowband","article_published_time":"2018-11-27T09:43:59+00:00","author":"Akash Sharma","twitter_card":"summary_large_image","twitter_creator":"@KnowbandPlugin","twitter_site":"@KnowbandPlugin","twitter_misc":{"Written by":"Akash Sharma","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.knowband.com\/blog\/tutorials\/send-push-notification-server\/#article","isPartOf":{"@id":"https:\/\/www.knowband.com\/blog\/tutorials\/send-push-notification-server\/"},"author":{"name":"Akash Sharma","@id":"https:\/\/www.knowband.com\/blog\/fr\/#\/schema\/person\/ef7cba7baa8b174cc01029e0b203bddc"},"headline":"How to send push notification from server?","datePublished":"2018-11-27T09:43:59+00:00","mainEntityOfPage":{"@id":"https:\/\/www.knowband.com\/blog\/tutorials\/send-push-notification-server\/"},"wordCount":164,"commentCount":0,"publisher":{"@id":"https:\/\/www.knowband.com\/blog\/fr\/#organization"},"keywords":["Firebase Push Notification","Push notification service","send push notification","send push notification online","send push notification to Firebase","Send Push Notification to Server"],"articleSection":["Tutorials"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.knowband.com\/blog\/tutorials\/send-push-notification-server\/","url":"https:\/\/www.knowband.com\/blog\/tutorials\/send-push-notification-server\/","name":"How to send push notification from server? - Knowband Blog | Ecommerce Modules","isPartOf":{"@id":"https:\/\/www.knowband.com\/blog\/fr\/#website"},"datePublished":"2018-11-27T09:43:59+00:00","breadcrumb":{"@id":"https:\/\/www.knowband.com\/blog\/tutorials\/send-push-notification-server\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.knowband.com\/blog\/tutorials\/send-push-notification-server\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.knowband.com\/blog\/tutorials\/send-push-notification-server\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.knowband.com\/blog\/fr\/"},{"@type":"ListItem","position":2,"name":"How to send push notification from server?"}]},{"@type":"WebSite","@id":"https:\/\/www.knowband.com\/blog\/fr\/#website","url":"https:\/\/www.knowband.com\/blog\/fr\/","name":"Knowband Blog | Ecommerce Modules","description":"Magento, Prestashop, Opencart, Shopify","publisher":{"@id":"https:\/\/www.knowband.com\/blog\/fr\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.knowband.com\/blog\/fr\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.knowband.com\/blog\/fr\/#organization","name":"Knowband Blog | Ecommerce Modules","url":"https:\/\/www.knowband.com\/blog\/fr\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.knowband.com\/blog\/fr\/#\/schema\/logo\/image\/","url":"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2016\/09\/cropped-knowband_logo-v2.png","contentUrl":"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2016\/09\/cropped-knowband_logo-v2.png","width":153,"height":61,"caption":"Knowband Blog | Ecommerce Modules"},"image":{"@id":"https:\/\/www.knowband.com\/blog\/fr\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/Knowband","https:\/\/x.com\/KnowbandPlugin"]},{"@type":"Person","@id":"https:\/\/www.knowband.com\/blog\/fr\/#\/schema\/person\/ef7cba7baa8b174cc01029e0b203bddc","name":"Akash Sharma","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2018\/10\/1392073474142574760-150x150.jpg","url":"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2018\/10\/1392073474142574760-150x150.jpg","contentUrl":"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2018\/10\/1392073474142574760-150x150.jpg","caption":"Akash Sharma"},"description":"I'm Akash Sharma, an engineering graduate and software developer by profession. Challenges fascinate me and I like solving them.","url":"https:\/\/www.knowband.com\/blog\/author\/asharma\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/www.knowband.com\/blog\/wp-json\/wp\/v2\/posts\/22887","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.knowband.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.knowband.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.knowband.com\/blog\/wp-json\/wp\/v2\/users\/11"}],"replies":[{"embeddable":true,"href":"https:\/\/www.knowband.com\/blog\/wp-json\/wp\/v2\/comments?post=22887"}],"version-history":[{"count":5,"href":"https:\/\/www.knowband.com\/blog\/wp-json\/wp\/v2\/posts\/22887\/revisions"}],"predecessor-version":[{"id":23015,"href":"https:\/\/www.knowband.com\/blog\/wp-json\/wp\/v2\/posts\/22887\/revisions\/23015"}],"wp:attachment":[{"href":"https:\/\/www.knowband.com\/blog\/wp-json\/wp\/v2\/media?parent=22887"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.knowband.com\/blog\/wp-json\/wp\/v2\/categories?post=22887"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.knowband.com\/blog\/wp-json\/wp\/v2\/tags?post=22887"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}