{"id":221902,"date":"2020-01-16T07:51:47","date_gmt":"2020-01-16T07:51:47","guid":{"rendered":"https:\/\/webkul.com\/blog\/?p=221902"},"modified":"2020-01-16T13:18:52","modified_gmt":"2020-01-16T13:18:52","slug":"how-to-setup-firebase-api-for-push-notifications-in-laravel-bagisto-pwa","status":"publish","type":"post","link":"https:\/\/webkul.com\/blog\/how-to-setup-firebase-api-for-push-notifications-in-laravel-bagisto-pwa\/","title":{"rendered":"How to setup Firebase API for Push Notifications in Laravel Bagisto-PWA"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">What are Push Notifications ?<\/h2>\n\n\n\n<p>A notification is a message that pops up on the user&#8217;s device. Notifications can be triggered locally by an open application, or they can be &#8220;pushed&#8221; from the server to the user even when the app is not running. They allow your users to opt-in to timely updates and allow you to effectively re-engage users with customised content.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1200\" height=\"675\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/01\/firebase-4-1200x675.png\" alt=\"firebase-4\" class=\"wp-image-221910\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/01\/firebase-4-1200x675.png 1200w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/01\/firebase-4-300x169.png 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/01\/firebase-4-250x141.png 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/01\/firebase-4-768x432.png 768w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/01\/firebase-4-1536x864.png 1536w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/01\/firebase-4.png 1920w\" sizes=\"(max-width: 1200px) 100vw, 1200px\" loading=\"lazy\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Step 1: Create your account on Firebase<\/h2>\n\n\n\n<p>Go to <a href=\"https:\/\/accounts.google.com\/signin\">https:\/\/accounts.google.com\/<\/a> and Sign In with your Google Account.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Step 2: Add\/Create a Project on Firebase<\/h2>\n\n\n\n<p>Go to <a href=\"https:\/\/console.firebase.google.com\/\">https:\/\/console.firebase.google.com\/<\/a> and click on Create a Project<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1200\" height=\"574\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/01\/firebase-create-project-1200x574.png\" alt=\"firebase-create-project\" class=\"wp-image-223068\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/01\/firebase-create-project-1200x574.png 1200w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/01\/firebase-create-project-300x144.png 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/01\/firebase-create-project-250x120.png 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/01\/firebase-create-project-768x368.png 768w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/01\/firebase-create-project.png 1293w\" sizes=\"(max-width: 1200px) 100vw, 1200px\" loading=\"lazy\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Step 3: Get Credentials<\/h2>\n\n\n\n<ul class=\"wp-block-list\"><li>At the right side of <strong>Project Overview<\/strong> you will see a settings icon.<\/li><li>Click on the settings icon and go to <strong>Project settings<\/strong>.<\/li><li>Under the general tab, scroll down and get these credentials: ( apiKey, authDomain, databaseURL, projectId, storageBucket, messagingSenderId, appId )<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"589\" height=\"207\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/01\/firebase-credentials-2.png\" alt=\"firebase-credentials-2\" class=\"wp-image-223362\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/01\/firebase-credentials-2.png 589w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/01\/firebase-credentials-2-300x105.png 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/01\/firebase-credentials-2-250x88.png 250w\" sizes=\"(max-width: 589px) 100vw, 589px\" loading=\"lazy\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\"><li>Now go in <strong>Cloud Messaging<\/strong> tab, under Project credentials &#8211; get these credentials: (Server key and Legacy server Key )<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-gallery columns-1 is-cropped wp-block-gallery-1 is-layout-flex wp-block-gallery-is-layout-flex\"><ul class=\"blocks-gallery-grid\"><li class=\"blocks-gallery-item\"><figure><img decoding=\"async\" width=\"944\" height=\"313\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/01\/credentials2-1.png\" alt=\"credentials2-1\" data-id=\"223364\" data-full-url=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/01\/credentials2-1.png\" data-link=\"https:\/\/webkul.com\/blog\/how-to-setup-firebase-api-for-push-notifications-in-laravel-bagisto-pwa\/credentials2-1\/\" class=\"wp-image-223364\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/01\/credentials2-1.png 944w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/01\/credentials2-1-300x99.png 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/01\/credentials2-1-250x83.png 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/01\/credentials2-1-768x255.png 768w\" sizes=\"(max-width: 944px) 100vw, 944px\" loading=\"lazy\" \/><\/figure><\/li><\/ul><\/figure>\n\n\n\n<ul class=\"wp-block-list\"><li>In the <strong>Cloud Messaging<\/strong> tab, under web Configuration &#8211; get key pair (also called vapid key ).<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-gallery columns-1 is-cropped wp-block-gallery-2 is-layout-flex wp-block-gallery-is-layout-flex\"><ul class=\"blocks-gallery-grid\"><li class=\"blocks-gallery-item\"><figure><img decoding=\"async\" width=\"938\" height=\"291\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/01\/credentials-3-1.png\" alt=\"credentials-3-1\" data-id=\"223374\" data-full-url=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/01\/credentials-3-1.png\" data-link=\"https:\/\/webkul.com\/blog\/how-to-setup-firebase-api-for-push-notifications-in-laravel-bagisto-pwa\/credentials-3-1\/\" class=\"wp-image-223374\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/01\/credentials-3-1.png 938w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/01\/credentials-3-1-300x93.png 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/01\/credentials-3-1-250x78.png 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/01\/credentials-3-1-768x238.png 768w\" sizes=\"(max-width: 938px) 100vw, 938px\" loading=\"lazy\" \/><\/figure><\/li><\/ul><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Step 4: Insert credentials into Admin panel<\/h2>\n\n\n\n<p>This is the final step. <\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Install PWA in Bagisto.<\/li><li>Go to Admin Panel.<\/li><li>Go to Configure -&gt; PWA -&gt; Push Notifications and insert all your credentials of firebase.<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-gallery columns-1 is-cropped wp-block-gallery-3 is-layout-flex wp-block-gallery-is-layout-flex\"><ul class=\"blocks-gallery-grid\"><li class=\"blocks-gallery-item\"><figure><img decoding=\"async\" width=\"1200\" height=\"494\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/01\/insert-credentials-1200x494.png\" alt=\"insert-credentials\" data-id=\"223142\" data-full-url=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/01\/insert-credentials.png\" data-link=\"https:\/\/webkul.com\/blog\/?attachment_id=223142\" class=\"wp-image-223142\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/01\/insert-credentials-1200x494.png 1200w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/01\/insert-credentials-300x123.png 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/01\/insert-credentials-250x103.png 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/01\/insert-credentials-768x316.png 768w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/01\/insert-credentials.png 1300w\" sizes=\"(max-width: 1200px) 100vw, 1200px\" loading=\"lazy\" \/><\/figure><\/li><\/ul><\/figure>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p>And that&#8217;s it. Now your PWA application is connected to firebase API.<\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>What are Push Notifications ? A notification is a message that pops up on the user&#8217;s device. Notifications can be triggered locally by an open application, or they can be &#8220;pushed&#8221; from the server to the user even when the app is not running. They allow your users to opt-in to timely updates and allow <a href=\"https:\/\/webkul.com\/blog\/how-to-setup-firebase-api-for-push-notifications-in-laravel-bagisto-pwa\/\">[&#8230;]<\/a><\/p>\n","protected":false},"author":299,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-221902","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to setup Firebase API for Push Notifications in Laravel Bagisto-PWA - Webkul Blog<\/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:\/\/webkul.com\/blog\/how-to-setup-firebase-api-for-push-notifications-in-laravel-bagisto-pwa\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to setup Firebase API for Push Notifications in Laravel Bagisto-PWA - Webkul Blog\" \/>\n<meta property=\"og:description\" content=\"What are Push Notifications ? A notification is a message that pops up on the user&#8217;s device. Notifications can be triggered locally by an open application, or they can be &#8220;pushed&#8221; from the server to the user even when the app is not running. They allow your users to opt-in to timely updates and allow [...]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/webkul.com\/blog\/how-to-setup-firebase-api-for-push-notifications-in-laravel-bagisto-pwa\/\" \/>\n<meta property=\"og:site_name\" content=\"Webkul Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/webkul\/\" \/>\n<meta property=\"article:published_time\" content=\"2020-01-16T07:51:47+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2020-01-16T13:18:52+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2020\/01\/firebase-4-1200x675.png\" \/>\n<meta name=\"author\" content=\"Aayush Bhatt\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@webkul\" \/>\n<meta name=\"twitter:site\" content=\"@webkul\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Aayush Bhatt\" \/>\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:\/\/webkul.com\/blog\/how-to-setup-firebase-api-for-push-notifications-in-laravel-bagisto-pwa\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/how-to-setup-firebase-api-for-push-notifications-in-laravel-bagisto-pwa\/\"},\"author\":{\"name\":\"Aayush Bhatt\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/e53a8bc1e20e4cea906a1b0f22925f16\"},\"headline\":\"How to setup Firebase API for Push Notifications in Laravel Bagisto-PWA\",\"datePublished\":\"2020-01-16T07:51:47+00:00\",\"dateModified\":\"2020-01-16T13:18:52+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/how-to-setup-firebase-api-for-push-notifications-in-laravel-bagisto-pwa\/\"},\"wordCount\":238,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/webkul.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/how-to-setup-firebase-api-for-push-notifications-in-laravel-bagisto-pwa\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2020\/01\/firebase-4-1200x675.png\",\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/webkul.com\/blog\/how-to-setup-firebase-api-for-push-notifications-in-laravel-bagisto-pwa\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/webkul.com\/blog\/how-to-setup-firebase-api-for-push-notifications-in-laravel-bagisto-pwa\/\",\"url\":\"https:\/\/webkul.com\/blog\/how-to-setup-firebase-api-for-push-notifications-in-laravel-bagisto-pwa\/\",\"name\":\"How to setup Firebase API for Push Notifications in Laravel Bagisto-PWA - Webkul Blog\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/how-to-setup-firebase-api-for-push-notifications-in-laravel-bagisto-pwa\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/how-to-setup-firebase-api-for-push-notifications-in-laravel-bagisto-pwa\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2020\/01\/firebase-4-1200x675.png\",\"datePublished\":\"2020-01-16T07:51:47+00:00\",\"dateModified\":\"2020-01-16T13:18:52+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/webkul.com\/blog\/how-to-setup-firebase-api-for-push-notifications-in-laravel-bagisto-pwa\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/webkul.com\/blog\/how-to-setup-firebase-api-for-push-notifications-in-laravel-bagisto-pwa\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/how-to-setup-firebase-api-for-push-notifications-in-laravel-bagisto-pwa\/#primaryimage\",\"url\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/01\/firebase-4.png\",\"contentUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/01\/firebase-4.png\",\"width\":1920,\"height\":1080,\"caption\":\"firebase-4\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/webkul.com\/blog\/how-to-setup-firebase-api-for-push-notifications-in-laravel-bagisto-pwa\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/webkul.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to setup Firebase API for Push Notifications in Laravel Bagisto-PWA\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/webkul.com\/blog\/#website\",\"url\":\"https:\/\/webkul.com\/blog\/\",\"name\":\"Webkul Blog\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/webkul.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/webkul.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/webkul.com\/blog\/#organization\",\"name\":\"WebKul Software Private Limited\",\"url\":\"https:\/\/webkul.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png\",\"contentUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png\",\"width\":380,\"height\":380,\"caption\":\"WebKul Software Private Limited\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/webkul\/\",\"https:\/\/x.com\/webkul\",\"https:\/\/www.instagram.com\/webkul\/\",\"https:\/\/www.linkedin.com\/company\/webkul\",\"https:\/\/www.youtube.com\/user\/webkul\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/e53a8bc1e20e4cea906a1b0f22925f16\",\"name\":\"Aayush Bhatt\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/b078428c8f8f1c6054aba4fbc3b1fb10da73757198d1c3b22f3e46d202ea89f8?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/b078428c8f8f1c6054aba4fbc3b1fb10da73757198d1c3b22f3e46d202ea89f8?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g\",\"caption\":\"Aayush Bhatt\"},\"url\":\"https:\/\/webkul.com\/blog\/author\/aayush-bhatt172\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to setup Firebase API for Push Notifications in Laravel Bagisto-PWA - Webkul Blog","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:\/\/webkul.com\/blog\/how-to-setup-firebase-api-for-push-notifications-in-laravel-bagisto-pwa\/","og_locale":"en_US","og_type":"article","og_title":"How to setup Firebase API for Push Notifications in Laravel Bagisto-PWA - Webkul Blog","og_description":"What are Push Notifications ? A notification is a message that pops up on the user&#8217;s device. Notifications can be triggered locally by an open application, or they can be &#8220;pushed&#8221; from the server to the user even when the app is not running. They allow your users to opt-in to timely updates and allow [...]","og_url":"https:\/\/webkul.com\/blog\/how-to-setup-firebase-api-for-push-notifications-in-laravel-bagisto-pwa\/","og_site_name":"Webkul Blog","article_publisher":"https:\/\/www.facebook.com\/webkul\/","article_published_time":"2020-01-16T07:51:47+00:00","article_modified_time":"2020-01-16T13:18:52+00:00","og_image":[{"url":"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2020\/01\/firebase-4-1200x675.png","type":"","width":"","height":""}],"author":"Aayush Bhatt","twitter_card":"summary_large_image","twitter_creator":"@webkul","twitter_site":"@webkul","twitter_misc":{"Written by":"Aayush Bhatt","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/webkul.com\/blog\/how-to-setup-firebase-api-for-push-notifications-in-laravel-bagisto-pwa\/#article","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/how-to-setup-firebase-api-for-push-notifications-in-laravel-bagisto-pwa\/"},"author":{"name":"Aayush Bhatt","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/e53a8bc1e20e4cea906a1b0f22925f16"},"headline":"How to setup Firebase API for Push Notifications in Laravel Bagisto-PWA","datePublished":"2020-01-16T07:51:47+00:00","dateModified":"2020-01-16T13:18:52+00:00","mainEntityOfPage":{"@id":"https:\/\/webkul.com\/blog\/how-to-setup-firebase-api-for-push-notifications-in-laravel-bagisto-pwa\/"},"wordCount":238,"commentCount":0,"publisher":{"@id":"https:\/\/webkul.com\/blog\/#organization"},"image":{"@id":"https:\/\/webkul.com\/blog\/how-to-setup-firebase-api-for-push-notifications-in-laravel-bagisto-pwa\/#primaryimage"},"thumbnailUrl":"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2020\/01\/firebase-4-1200x675.png","inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/webkul.com\/blog\/how-to-setup-firebase-api-for-push-notifications-in-laravel-bagisto-pwa\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/webkul.com\/blog\/how-to-setup-firebase-api-for-push-notifications-in-laravel-bagisto-pwa\/","url":"https:\/\/webkul.com\/blog\/how-to-setup-firebase-api-for-push-notifications-in-laravel-bagisto-pwa\/","name":"How to setup Firebase API for Push Notifications in Laravel Bagisto-PWA - Webkul Blog","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/webkul.com\/blog\/how-to-setup-firebase-api-for-push-notifications-in-laravel-bagisto-pwa\/#primaryimage"},"image":{"@id":"https:\/\/webkul.com\/blog\/how-to-setup-firebase-api-for-push-notifications-in-laravel-bagisto-pwa\/#primaryimage"},"thumbnailUrl":"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2020\/01\/firebase-4-1200x675.png","datePublished":"2020-01-16T07:51:47+00:00","dateModified":"2020-01-16T13:18:52+00:00","breadcrumb":{"@id":"https:\/\/webkul.com\/blog\/how-to-setup-firebase-api-for-push-notifications-in-laravel-bagisto-pwa\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/webkul.com\/blog\/how-to-setup-firebase-api-for-push-notifications-in-laravel-bagisto-pwa\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/how-to-setup-firebase-api-for-push-notifications-in-laravel-bagisto-pwa\/#primaryimage","url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/01\/firebase-4.png","contentUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/01\/firebase-4.png","width":1920,"height":1080,"caption":"firebase-4"},{"@type":"BreadcrumbList","@id":"https:\/\/webkul.com\/blog\/how-to-setup-firebase-api-for-push-notifications-in-laravel-bagisto-pwa\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/webkul.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to setup Firebase API for Push Notifications in Laravel Bagisto-PWA"}]},{"@type":"WebSite","@id":"https:\/\/webkul.com\/blog\/#website","url":"https:\/\/webkul.com\/blog\/","name":"Webkul Blog","description":"","publisher":{"@id":"https:\/\/webkul.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/webkul.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/webkul.com\/blog\/#organization","name":"WebKul Software Private Limited","url":"https:\/\/webkul.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png","contentUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png","width":380,"height":380,"caption":"WebKul Software Private Limited"},"image":{"@id":"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/webkul\/","https:\/\/x.com\/webkul","https:\/\/www.instagram.com\/webkul\/","https:\/\/www.linkedin.com\/company\/webkul","https:\/\/www.youtube.com\/user\/webkul\/"]},{"@type":"Person","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/e53a8bc1e20e4cea906a1b0f22925f16","name":"Aayush Bhatt","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/b078428c8f8f1c6054aba4fbc3b1fb10da73757198d1c3b22f3e46d202ea89f8?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/b078428c8f8f1c6054aba4fbc3b1fb10da73757198d1c3b22f3e46d202ea89f8?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g","caption":"Aayush Bhatt"},"url":"https:\/\/webkul.com\/blog\/author\/aayush-bhatt172\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/221902","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/users\/299"}],"replies":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/comments?post=221902"}],"version-history":[{"count":21,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/221902\/revisions"}],"predecessor-version":[{"id":223424,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/221902\/revisions\/223424"}],"wp:attachment":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/media?parent=221902"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/categories?post=221902"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/tags?post=221902"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}