{"id":259,"date":"2019-05-14T00:05:45","date_gmt":"2019-05-14T00:05:45","guid":{"rendered":"https:\/\/avantutor.com\/blog\/?p=259"},"modified":"2019-05-14T00:05:47","modified_gmt":"2019-05-14T00:05:47","slug":"how-i-got-web-push-notifications-to-work-on-my-site-using-airship","status":"publish","type":"post","link":"https:\/\/avantutor.com\/blog\/how-i-got-web-push-notifications-to-work-on-my-site-using-airship\/","title":{"rendered":"How I Got Web Push Notifications to Work on my Site Using Airship"},"content":{"rendered":"\n<p>Here is what I did to be able to send <strong>web push notification<\/strong> to users on my site who accepted receiving them. <\/p>\n\n\n\n<p> I found <strong>Airship&#8217;s<\/strong> documentation site slightly on the confusing side although the following page was helpful.<\/p>\n\n\n\n<p><a href=\"https:\/\/docs.airship.com\/platform\/web\/getting-started\/\">https:\/\/docs.airship.com\/platform\/web\/getting-started\/<\/a><\/p>\n\n\n\n<p>I followed the instruction and got it to work on on a site with a secure https protocol and using a <strong>Chrome<\/strong> browser. I have not tested it on localhost. <\/p>\n\n\n\n<h2 class=\"wp-block-heading\"> Step 1) Airship Account Sign Up<\/h2>\n\n\n\n<p>You need an account. It&#8217;s free. So sign up here: <\/p>\n\n\n\n<p><a href=\"https:\/\/go.urbanairship.com\/accounts\/register\/plan\/starter\/\">https:\/\/go.urbanairship.com\/accounts\/register\/plan\/starter\/<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Step 2) Set Up a Test of Live Environment &#8211; Create Project<\/h2>\n\n\n\n<p>In the email they sent you there is a link to confirm your account. Once you do it will take you to the following screen. Click on the &#8216;Create Project &#8216; option. <\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"585\" src=\"https:\/\/avantutor.com\/blog\/wp-content\/uploads\/2019\/05\/Screen-Shot-2019-05-13-at-2.45.00-PM-1-1024x585.png\" alt=\"Step 2 of Getting Push Notifications to work using Airship. Create Airship Project.  \" class=\"wp-image-261\" srcset=\"https:\/\/avantutor.com\/blog\/wp-content\/uploads\/2019\/05\/Screen-Shot-2019-05-13-at-2.45.00-PM-1-1024x585.png 1024w, https:\/\/avantutor.com\/blog\/wp-content\/uploads\/2019\/05\/Screen-Shot-2019-05-13-at-2.45.00-PM-1-300x171.png 300w, https:\/\/avantutor.com\/blog\/wp-content\/uploads\/2019\/05\/Screen-Shot-2019-05-13-at-2.45.00-PM-1-768x439.png 768w, https:\/\/avantutor.com\/blog\/wp-content\/uploads\/2019\/05\/Screen-Shot-2019-05-13-at-2.45.00-PM-1-1140x652.png 1140w, https:\/\/avantutor.com\/blog\/wp-content\/uploads\/2019\/05\/Screen-Shot-2019-05-13-at-2.45.00-PM-1-552x316.png 552w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><figcaption>Step 2 &#8211; Create Project<\/figcaption><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\">Fill Out Form<\/h4>\n\n\n\n<p>This part is pretty straightforward and you can&#8217;t make a mistake. For the 3rd option I picked &#8216;Live&#8217; instead of the &#8216;Test&#8217;. <\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"561\" src=\"https:\/\/avantutor.com\/blog\/wp-content\/uploads\/2019\/05\/Screen-Shot-2019-05-13-at-2.54.33-PM-1024x561.png\" alt=\"Step 2 of Getting Push Notifications to work using Airship. Create Airship Project.  Enter Details. \" class=\"wp-image-262\" srcset=\"https:\/\/avantutor.com\/blog\/wp-content\/uploads\/2019\/05\/Screen-Shot-2019-05-13-at-2.54.33-PM-1024x561.png 1024w, https:\/\/avantutor.com\/blog\/wp-content\/uploads\/2019\/05\/Screen-Shot-2019-05-13-at-2.54.33-PM-300x164.png 300w, https:\/\/avantutor.com\/blog\/wp-content\/uploads\/2019\/05\/Screen-Shot-2019-05-13-at-2.54.33-PM-768x421.png 768w, https:\/\/avantutor.com\/blog\/wp-content\/uploads\/2019\/05\/Screen-Shot-2019-05-13-at-2.54.33-PM-1140x625.png 1140w, https:\/\/avantutor.com\/blog\/wp-content\/uploads\/2019\/05\/Screen-Shot-2019-05-13-at-2.54.33-PM-552x303.png 552w, https:\/\/avantutor.com\/blog\/wp-content\/uploads\/2019\/05\/Screen-Shot-2019-05-13-at-2.54.33-PM.png 1392w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><figcaption>Step 2 &#8211; Enter New Project Details<\/figcaption><\/figure>\n\n\n\n<p> Click &#8216;Create Project&#8217; when done.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Step 3) Channel Guide<\/h2>\n\n\n\n<p>On the next page click on &#8216;Channel Guide +&#8217; then &#8216;Web Notifications&#8217;<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"350\" src=\"https:\/\/avantutor.com\/blog\/wp-content\/uploads\/2019\/05\/Screen-Shot-2019-05-13-at-2.59.49-PM-1024x350.png\" alt=\"Step 3 of Getting Push Notifications to work using Airship. Start Channel Guide. \" class=\"wp-image-265\" srcset=\"https:\/\/avantutor.com\/blog\/wp-content\/uploads\/2019\/05\/Screen-Shot-2019-05-13-at-2.59.49-PM-1024x350.png 1024w, https:\/\/avantutor.com\/blog\/wp-content\/uploads\/2019\/05\/Screen-Shot-2019-05-13-at-2.59.49-PM-300x103.png 300w, https:\/\/avantutor.com\/blog\/wp-content\/uploads\/2019\/05\/Screen-Shot-2019-05-13-at-2.59.49-PM-768x262.png 768w, https:\/\/avantutor.com\/blog\/wp-content\/uploads\/2019\/05\/Screen-Shot-2019-05-13-at-2.59.49-PM-1140x390.png 1140w, https:\/\/avantutor.com\/blog\/wp-content\/uploads\/2019\/05\/Screen-Shot-2019-05-13-at-2.59.49-PM-552x189.png 552w, https:\/\/avantutor.com\/blog\/wp-content\/uploads\/2019\/05\/Screen-Shot-2019-05-13-at-2.59.49-PM.png 1390w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><figcaption>Step 3 &#8211; Create Channel Guide<\/figcaption><\/figure>\n\n\n\n<p>Click on &#8216;Proceed to Setup&#8217;<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"438\" src=\"https:\/\/avantutor.com\/blog\/wp-content\/uploads\/2019\/05\/Screen-Shot-2019-05-13-at-3.01.14-PM-1024x438.png\" alt=\"Step 3 of Getting Push Notifications to work using Airship. Start Channel Guide. Proceed to Setup.\" class=\"wp-image-266\" srcset=\"https:\/\/avantutor.com\/blog\/wp-content\/uploads\/2019\/05\/Screen-Shot-2019-05-13-at-3.01.14-PM-1024x438.png 1024w, https:\/\/avantutor.com\/blog\/wp-content\/uploads\/2019\/05\/Screen-Shot-2019-05-13-at-3.01.14-PM-300x128.png 300w, https:\/\/avantutor.com\/blog\/wp-content\/uploads\/2019\/05\/Screen-Shot-2019-05-13-at-3.01.14-PM-768x328.png 768w, https:\/\/avantutor.com\/blog\/wp-content\/uploads\/2019\/05\/Screen-Shot-2019-05-13-at-3.01.14-PM-1140x487.png 1140w, https:\/\/avantutor.com\/blog\/wp-content\/uploads\/2019\/05\/Screen-Shot-2019-05-13-at-3.01.14-PM-552x236.png 552w, https:\/\/avantutor.com\/blog\/wp-content\/uploads\/2019\/05\/Screen-Shot-2019-05-13-at-3.01.14-PM.png 1392w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><figcaption>Step 3 &#8211; Proceed to Setup<\/figcaption><\/figure>\n\n\n\n<p>Fill out all the fields. Enter an image URL for the image part. I DID NOT select the &#8216;mixed HTTPS site&#8217; or the &#8216;Add Safari support&#8217;<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"935\" src=\"https:\/\/avantutor.com\/blog\/wp-content\/uploads\/2019\/05\/Screen-Shot-2019-05-13-at-3.05.47-PM-1024x935.png\" alt=\"Step 3 of Getting Push Notifications to work using Airship. Start Channel Guide. Fill out form. \" class=\"wp-image-267\" srcset=\"https:\/\/avantutor.com\/blog\/wp-content\/uploads\/2019\/05\/Screen-Shot-2019-05-13-at-3.05.47-PM-1024x935.png 1024w, https:\/\/avantutor.com\/blog\/wp-content\/uploads\/2019\/05\/Screen-Shot-2019-05-13-at-3.05.47-PM-300x274.png 300w, https:\/\/avantutor.com\/blog\/wp-content\/uploads\/2019\/05\/Screen-Shot-2019-05-13-at-3.05.47-PM-768x701.png 768w, https:\/\/avantutor.com\/blog\/wp-content\/uploads\/2019\/05\/Screen-Shot-2019-05-13-at-3.05.47-PM-552x504.png 552w, https:\/\/avantutor.com\/blog\/wp-content\/uploads\/2019\/05\/Screen-Shot-2019-05-13-at-3.05.47-PM.png 1057w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><figcaption>Step 3 &#8211; Fill Out Channel Details<\/figcaption><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\">Download Files<\/h4>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"934\" src=\"https:\/\/avantutor.com\/blog\/wp-content\/uploads\/2019\/05\/Screen-Shot-2019-05-13-at-3.16.08-PM-1024x934.png\" alt=\"Step 3 of Getting Push Notifications to work using Airship. Start Channel Guide. Download Files. \" class=\"wp-image-268\" srcset=\"https:\/\/avantutor.com\/blog\/wp-content\/uploads\/2019\/05\/Screen-Shot-2019-05-13-at-3.16.08-PM-1024x934.png 1024w, https:\/\/avantutor.com\/blog\/wp-content\/uploads\/2019\/05\/Screen-Shot-2019-05-13-at-3.16.08-PM-300x274.png 300w, https:\/\/avantutor.com\/blog\/wp-content\/uploads\/2019\/05\/Screen-Shot-2019-05-13-at-3.16.08-PM-768x700.png 768w, https:\/\/avantutor.com\/blog\/wp-content\/uploads\/2019\/05\/Screen-Shot-2019-05-13-at-3.16.08-PM-552x503.png 552w, https:\/\/avantutor.com\/blog\/wp-content\/uploads\/2019\/05\/Screen-Shot-2019-05-13-at-3.16.08-PM.png 1043w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><figcaption>Step 3 &#8211; Download Files<\/figcaption><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Step 4) Install Code<\/h2>\n\n\n\n<p>Download the files and unzip them. <\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"158\" src=\"https:\/\/avantutor.com\/blog\/wp-content\/uploads\/2019\/05\/Screen-Shot-2019-05-13-at-3.17.38-PM-1024x158.png\" alt=\"Step 4 of Getting Push Notifications to work using Airship. Install Code. Downloaded Files.\" class=\"wp-image-269\" srcset=\"https:\/\/avantutor.com\/blog\/wp-content\/uploads\/2019\/05\/Screen-Shot-2019-05-13-at-3.17.38-PM-1024x158.png 1024w, https:\/\/avantutor.com\/blog\/wp-content\/uploads\/2019\/05\/Screen-Shot-2019-05-13-at-3.17.38-PM-300x46.png 300w, https:\/\/avantutor.com\/blog\/wp-content\/uploads\/2019\/05\/Screen-Shot-2019-05-13-at-3.17.38-PM-768x118.png 768w, https:\/\/avantutor.com\/blog\/wp-content\/uploads\/2019\/05\/Screen-Shot-2019-05-13-at-3.17.38-PM-1140x175.png 1140w, https:\/\/avantutor.com\/blog\/wp-content\/uploads\/2019\/05\/Screen-Shot-2019-05-13-at-3.17.38-PM-552x85.png 552w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><figcaption>Step 4 &#8211; Downloaded Files<\/figcaption><\/figure>\n\n\n\n<p>Copy all the code inside &#8216;snippet.html&#8217; and paste it into the head of EVERY PAGE of your site.  Code below is just an example. DON&#8217;T COPY and paste that one. Copy and paste your downloaded version instead.  <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;script type=\"text\/javascript\">\n!function(n,t,c,e,u){function r(n){try{f=n(u)}catch(n){return h=n,void i(p,n)}i(s,f)}function i(n,t){for(var c=0;c&lt;n.length;c++)d(n[c],t);\n}function o(n,t){return n&amp;&amp;(f?d(n,f):s.push(n)),t&amp;&amp;(h?d(t,h):p.push(t)),l}function a(n){return o(!1,n)}function d(t,c){\nn.setTimeout(function(){t(c)},0)}var f,h,s=[],p=[],l={then:o,catch:a,_setup:r};n[e]=l;var v=t.createElement(\"script\");\nv.src=c,v.async=!0,v.id=\"_uasdk\",v.rel=e,t.head.appendChild(v)}(window,document,'https:\/\/web-sdk.urbanairship.com\/notify\/v1\/ua-sdk.min.js',\n  'UA', \/\/ This value can be changed to use a custom variable name.\n  {\n  appKey: 'YOUR-APP-KEY',\n  token: 'BEARERTOKEN-FROM-UA',\n\n  \/\/ Safari Web Push only\n  websitePushId: 'WEBSITE-PUSH-ID-FROM-UA',\n  \/\/ Open Web Push Protocol only.\n  vapidPublicKey: 'WEB-PUSH-KEY-FROM-UA',\n  \/\/ Only needed when used on insecure hosts:\n  secureIframeUrl: 'https:\/\/your.secure.domain\/path\/to\/web-push-secure-bridge.html'\n  })\n&lt;\/script><\/code><\/pre>\n\n\n\n<p>Now copy the &#8216;push-worker.js&#8217; into your web ROOT directory.  Be aware that sometimes the web root inside of another folder.  They could be called &#8216;web&#8217; or &#8216;public_html&#8217;.  You can try moving (not copying) it around and see which directory works for you. <\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Step 5) Register your Service Worker File<\/h2>\n\n\n\n<p>Service worker Javascript registration code: <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>UA.then(function(sdk) {\n  sdk.register() \/\/ Returns Channel object\n})<\/code><\/pre>\n\n\n\n<p>I don&#8217;t know if the following is the best location for the service registration code but here is where I placed it.  Namely right before the (pasted) script closing tag of the snippet.html code.  Feel free to add it else where.  So this is how my snippet.html code snippet looks like now.  So if you have already pasted the snippet.html into the heads of every page go back and add the service registration code. <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;script type=\"text\/javascript\">\n!function(n,t,c,e,u){function r(n){try{f=n(u)}catch(n){return h=n,void i(p,n)}i(s,f)}function i(n,t){for(var c=0;c&lt;n.length;c++)d(n[c],t);\n}function o(n,t){return n&amp;&amp;(f?d(n,f):s.push(n)),t&amp;&amp;(h?d(t,h):p.push(t)),l}function a(n){return o(!1,n)}function d(t,c){\nn.setTimeout(function(){t(c)},0)}var f,h,s=[],p=[],l={then:o,catch:a,_setup:r};n[e]=l;var v=t.createElement(\"script\");\nv.src=c,v.async=!0,v.id=\"_uasdk\",v.rel=e,t.head.appendChild(v)}(window,document,'https:\/\/web-sdk.urbanairship.com\/notify\/v1\/ua-sdk.min.js',\n  'UA', \/\/ This value can be changed to use a custom variable name.\n  {\n  appKey: 'YOUR-APP-KEY',\n  token: 'BEARERTOKEN-FROM-UA',\n\n  \/\/ Safari Web Push only\n  websitePushId: 'WEBSITE-PUSH-ID-FROM-UA',\n  \/\/ Open Web Push Protocol only.\n  vapidPublicKey: 'WEB-PUSH-KEY-FROM-UA',\n  \/\/ Only needed when used on insecure hosts:\n  secureIframeUrl: 'https:\/\/your.secure.domain\/path\/to\/web-push-secure-bridge.html'\n  })\n\n\/\/ ADDED -- REGISTER SERVICE WORKER \nUA.then(function(sdk) {\n  sdk.register() \/\/ Returns Channel object\n})\n\n&lt;\/script><\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Step 6) Make Sure you Can Receive Web Notifications in Chrome (on Mac OS X)<\/h2>\n\n\n\n<p>There are two places where I would make sure you have web notifications enabled.  One is at the browser (Chrome) level and the other is on the Operating System level (MAC OS X)<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">In Chrome <\/h4>\n\n\n\n<p>Go to: <a href=\"chrome:\/\/settings\/content\/notifications\">chrome:\/\/settings\/content\/notifications<\/a> and make sure your site is not on the blocked list<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"297\" src=\"https:\/\/avantutor.com\/blog\/wp-content\/uploads\/2019\/05\/Screen-Shot-2019-05-13-at-3.48.21-PM-1024x297.png\" alt=\"Step 6 of Getting Push Notifications to work using Airship. Notification Settings. Chrome Notifications Settings. \" class=\"wp-image-272\" srcset=\"https:\/\/avantutor.com\/blog\/wp-content\/uploads\/2019\/05\/Screen-Shot-2019-05-13-at-3.48.21-PM-1024x297.png 1024w, https:\/\/avantutor.com\/blog\/wp-content\/uploads\/2019\/05\/Screen-Shot-2019-05-13-at-3.48.21-PM-300x87.png 300w, https:\/\/avantutor.com\/blog\/wp-content\/uploads\/2019\/05\/Screen-Shot-2019-05-13-at-3.48.21-PM-768x223.png 768w, https:\/\/avantutor.com\/blog\/wp-content\/uploads\/2019\/05\/Screen-Shot-2019-05-13-at-3.48.21-PM-1140x331.png 1140w, https:\/\/avantutor.com\/blog\/wp-content\/uploads\/2019\/05\/Screen-Shot-2019-05-13-at-3.48.21-PM-552x160.png 552w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><figcaption>Step 6 &#8211; Chrome Notification Settings<\/figcaption><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\">In Mac<\/h4>\n\n\n\n<p>Go to Mac notification settings<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"642\" height=\"1024\" src=\"https:\/\/avantutor.com\/blog\/wp-content\/uploads\/2019\/05\/Screen-Shot-2019-05-13-at-3.54.58-PM-642x1024.png\" alt=\"Step 6 of Getting Push Notifications to work using Airship. Notification Settings. Mac OS Notifications Settings. Screen 1.\" class=\"wp-image-273\" srcset=\"https:\/\/avantutor.com\/blog\/wp-content\/uploads\/2019\/05\/Screen-Shot-2019-05-13-at-3.54.58-PM-642x1024.png 642w, https:\/\/avantutor.com\/blog\/wp-content\/uploads\/2019\/05\/Screen-Shot-2019-05-13-at-3.54.58-PM-188x300.png 188w, https:\/\/avantutor.com\/blog\/wp-content\/uploads\/2019\/05\/Screen-Shot-2019-05-13-at-3.54.58-PM-768x1224.png 768w, https:\/\/avantutor.com\/blog\/wp-content\/uploads\/2019\/05\/Screen-Shot-2019-05-13-at-3.54.58-PM-552x880.png 552w, https:\/\/avantutor.com\/blog\/wp-content\/uploads\/2019\/05\/Screen-Shot-2019-05-13-at-3.54.58-PM.png 1128w\" sizes=\"(max-width: 642px) 100vw, 642px\" \/><figcaption>Step 6 &#8211; Mac OS Notification Settings 1<\/figcaption><\/figure>\n\n\n\n<p>Verify the general and chrome notifications settings<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"814\" src=\"https:\/\/avantutor.com\/blog\/wp-content\/uploads\/2019\/05\/Screen-Shot-2019-05-13-at-3.57.36-PM-1024x814.png\" alt=\"Step 6 of Getting Push Notifications to work using Airship. Notification Settings. Mac OS Notifications Settings. Screen 2.\" class=\"wp-image-274\" srcset=\"https:\/\/avantutor.com\/blog\/wp-content\/uploads\/2019\/05\/Screen-Shot-2019-05-13-at-3.57.36-PM-1024x814.png 1024w, https:\/\/avantutor.com\/blog\/wp-content\/uploads\/2019\/05\/Screen-Shot-2019-05-13-at-3.57.36-PM-300x239.png 300w, https:\/\/avantutor.com\/blog\/wp-content\/uploads\/2019\/05\/Screen-Shot-2019-05-13-at-3.57.36-PM-768x611.png 768w, https:\/\/avantutor.com\/blog\/wp-content\/uploads\/2019\/05\/Screen-Shot-2019-05-13-at-3.57.36-PM-1140x907.png 1140w, https:\/\/avantutor.com\/blog\/wp-content\/uploads\/2019\/05\/Screen-Shot-2019-05-13-at-3.57.36-PM-552x439.png 552w, https:\/\/avantutor.com\/blog\/wp-content\/uploads\/2019\/05\/Screen-Shot-2019-05-13-at-3.57.36-PM.png 1338w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><figcaption>Step 6 &#8211; Mac OS Notification Settings 2<\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"813\" src=\"https:\/\/avantutor.com\/blog\/wp-content\/uploads\/2019\/05\/Screen-Shot-2019-05-13-at-4.00.11-PM-1024x813.png\" alt=\"Step 6 of Getting Push Notifications to work using Airship. Notification Settings. Mac OS Notifications Settings. Screen 3. \" class=\"wp-image-275\" srcset=\"https:\/\/avantutor.com\/blog\/wp-content\/uploads\/2019\/05\/Screen-Shot-2019-05-13-at-4.00.11-PM-1024x813.png 1024w, https:\/\/avantutor.com\/blog\/wp-content\/uploads\/2019\/05\/Screen-Shot-2019-05-13-at-4.00.11-PM-300x238.png 300w, https:\/\/avantutor.com\/blog\/wp-content\/uploads\/2019\/05\/Screen-Shot-2019-05-13-at-4.00.11-PM-768x610.png 768w, https:\/\/avantutor.com\/blog\/wp-content\/uploads\/2019\/05\/Screen-Shot-2019-05-13-at-4.00.11-PM-1140x905.png 1140w, https:\/\/avantutor.com\/blog\/wp-content\/uploads\/2019\/05\/Screen-Shot-2019-05-13-at-4.00.11-PM-552x438.png 552w, https:\/\/avantutor.com\/blog\/wp-content\/uploads\/2019\/05\/Screen-Shot-2019-05-13-at-4.00.11-PM.png 1338w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><figcaption><em>Step 6 &#8211; Mac OS Notification Settings <\/em>3<\/figcaption><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\"> Re-Load Your Page<\/h4>\n\n\n\n<p>Now re-load your page in chrome (not in incognito). If everything went well you should receive a prompt message asking you if you would like to receive push notifications. <\/p>\n\n\n\n<p>If you did not receive such a prompt I would recommend checking your server logs and browser console. <\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"774\" height=\"407\" src=\"https:\/\/avantutor.com\/blog\/wp-content\/uploads\/2019\/05\/docs-registration.png\" alt=\"Step 6 of Getting Push Notifications to work using Airship. Notification Settings. Notification Block Allow Prompt. \" class=\"wp-image-286\" srcset=\"https:\/\/avantutor.com\/blog\/wp-content\/uploads\/2019\/05\/docs-registration.png 774w, https:\/\/avantutor.com\/blog\/wp-content\/uploads\/2019\/05\/docs-registration-300x158.png 300w, https:\/\/avantutor.com\/blog\/wp-content\/uploads\/2019\/05\/docs-registration-768x404.png 768w, https:\/\/avantutor.com\/blog\/wp-content\/uploads\/2019\/05\/docs-registration-552x290.png 552w\" sizes=\"(max-width: 774px) 100vw, 774px\" \/><figcaption>Step 6 &#8211; Notification Block Allow Prompt<\/figcaption><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Step 7) Send a Test Message<\/h2>\n\n\n\n<p>Login into your <strong>Airship<\/strong> dashboard if you don&#8217;t have it up already: <a href=\"https:\/\/go.urbanairship.com\/apps\/\">https:\/\/go.urbanairship.com\/apps\/<\/a> <\/p>\n\n\n\n<p>Select the project you created earlier.  In my case I called it &#8216;Blog Post Project&#8217; <\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"466\" src=\"https:\/\/avantutor.com\/blog\/wp-content\/uploads\/2019\/05\/Screen-Shot-2019-05-13-at-4.10.59-PM-1024x466.png\" alt=\"Step 7 of Getting Push Notifications to work using Airship. Send Test Message. Select Project. \" class=\"wp-image-276\" srcset=\"https:\/\/avantutor.com\/blog\/wp-content\/uploads\/2019\/05\/Screen-Shot-2019-05-13-at-4.10.59-PM-1024x466.png 1024w, https:\/\/avantutor.com\/blog\/wp-content\/uploads\/2019\/05\/Screen-Shot-2019-05-13-at-4.10.59-PM-300x137.png 300w, https:\/\/avantutor.com\/blog\/wp-content\/uploads\/2019\/05\/Screen-Shot-2019-05-13-at-4.10.59-PM-768x350.png 768w, https:\/\/avantutor.com\/blog\/wp-content\/uploads\/2019\/05\/Screen-Shot-2019-05-13-at-4.10.59-PM-552x251.png 552w, https:\/\/avantutor.com\/blog\/wp-content\/uploads\/2019\/05\/Screen-Shot-2019-05-13-at-4.10.59-PM.png 1059w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><figcaption>Step 7 &#8211; Select Project <\/figcaption><\/figure>\n\n\n\n<p>Click &#8216;+ Create&#8217;<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"643\" src=\"https:\/\/avantutor.com\/blog\/wp-content\/uploads\/2019\/05\/Screen-Shot-2019-05-13-at-4.14.22-PM-1024x643.png\" alt=\"Step 7 of Getting Push Notifications to work using Airship. Send Test Message. Create Message. \" class=\"wp-image-277\" srcset=\"https:\/\/avantutor.com\/blog\/wp-content\/uploads\/2019\/05\/Screen-Shot-2019-05-13-at-4.14.22-PM-1024x643.png 1024w, https:\/\/avantutor.com\/blog\/wp-content\/uploads\/2019\/05\/Screen-Shot-2019-05-13-at-4.14.22-PM-300x188.png 300w, https:\/\/avantutor.com\/blog\/wp-content\/uploads\/2019\/05\/Screen-Shot-2019-05-13-at-4.14.22-PM-768x482.png 768w, https:\/\/avantutor.com\/blog\/wp-content\/uploads\/2019\/05\/Screen-Shot-2019-05-13-at-4.14.22-PM-552x347.png 552w, https:\/\/avantutor.com\/blog\/wp-content\/uploads\/2019\/05\/Screen-Shot-2019-05-13-at-4.14.22-PM.png 1053w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><figcaption>Step 7 &#8211; Create Message<\/figcaption><\/figure>\n\n\n\n<p>Select &#8216;All Users&#8217; Move on to Content <\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"448\" src=\"https:\/\/avantutor.com\/blog\/wp-content\/uploads\/2019\/05\/Screen-Shot-2019-05-13-at-4.15.47-PM-1024x448.png\" alt=\"Step 7 of Getting Push Notifications to work using Airship. Send Test Message. Select All Users.\" class=\"wp-image-278\" srcset=\"https:\/\/avantutor.com\/blog\/wp-content\/uploads\/2019\/05\/Screen-Shot-2019-05-13-at-4.15.47-PM-1024x448.png 1024w, https:\/\/avantutor.com\/blog\/wp-content\/uploads\/2019\/05\/Screen-Shot-2019-05-13-at-4.15.47-PM-300x131.png 300w, https:\/\/avantutor.com\/blog\/wp-content\/uploads\/2019\/05\/Screen-Shot-2019-05-13-at-4.15.47-PM-768x336.png 768w, https:\/\/avantutor.com\/blog\/wp-content\/uploads\/2019\/05\/Screen-Shot-2019-05-13-at-4.15.47-PM-552x242.png 552w, https:\/\/avantutor.com\/blog\/wp-content\/uploads\/2019\/05\/Screen-Shot-2019-05-13-at-4.15.47-PM.png 1051w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><figcaption>Step 7 &#8211; Select All users<\/figcaption><\/figure>\n\n\n\n<p>Fill in the text area with the message you would like to send<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"938\" src=\"https:\/\/avantutor.com\/blog\/wp-content\/uploads\/2019\/05\/Screen-Shot-2019-05-13-at-4.21.19-PM-1024x938.png\" alt=\"Step 7 of Getting Push Notifications to work using Airship. Send Test Message. Fill out message details.\" class=\"wp-image-280\" srcset=\"https:\/\/avantutor.com\/blog\/wp-content\/uploads\/2019\/05\/Screen-Shot-2019-05-13-at-4.21.19-PM-1024x938.png 1024w, https:\/\/avantutor.com\/blog\/wp-content\/uploads\/2019\/05\/Screen-Shot-2019-05-13-at-4.21.19-PM-300x275.png 300w, https:\/\/avantutor.com\/blog\/wp-content\/uploads\/2019\/05\/Screen-Shot-2019-05-13-at-4.21.19-PM-768x704.png 768w, https:\/\/avantutor.com\/blog\/wp-content\/uploads\/2019\/05\/Screen-Shot-2019-05-13-at-4.21.19-PM-552x506.png 552w, https:\/\/avantutor.com\/blog\/wp-content\/uploads\/2019\/05\/Screen-Shot-2019-05-13-at-4.21.19-PM.png 1061w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><figcaption>Step 7 &#8211; Fill out Message Details<\/figcaption><\/figure>\n\n\n\n<p>Select &#8216;Send Now&#8217;<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"565\" src=\"https:\/\/avantutor.com\/blog\/wp-content\/uploads\/2019\/05\/Screen-Shot-2019-05-13-at-4.24.58-PM-1024x565.png\" alt=\"Step 7 of Getting Push Notifications to work using Airship. Send Test Message. Click Send Now. \" class=\"wp-image-281\" srcset=\"https:\/\/avantutor.com\/blog\/wp-content\/uploads\/2019\/05\/Screen-Shot-2019-05-13-at-4.24.58-PM-1024x565.png 1024w, https:\/\/avantutor.com\/blog\/wp-content\/uploads\/2019\/05\/Screen-Shot-2019-05-13-at-4.24.58-PM-300x166.png 300w, https:\/\/avantutor.com\/blog\/wp-content\/uploads\/2019\/05\/Screen-Shot-2019-05-13-at-4.24.58-PM-768x424.png 768w, https:\/\/avantutor.com\/blog\/wp-content\/uploads\/2019\/05\/Screen-Shot-2019-05-13-at-4.24.58-PM-552x305.png 552w, https:\/\/avantutor.com\/blog\/wp-content\/uploads\/2019\/05\/Screen-Shot-2019-05-13-at-4.24.58-PM.png 1054w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><figcaption>Step 7 &#8211; Send Now<\/figcaption><\/figure>\n\n\n\n<p>Goto &#8216;Review &amp; Send&#8217;<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"563\" src=\"https:\/\/avantutor.com\/blog\/wp-content\/uploads\/2019\/05\/Screen-Shot-2019-05-13-at-4.26.42-PM-1024x563.png\" alt=\"Step 7 of Getting Push Notifications to work using Airship. Send Test Message. Click Review &amp; Send.\" class=\"wp-image-282\" srcset=\"https:\/\/avantutor.com\/blog\/wp-content\/uploads\/2019\/05\/Screen-Shot-2019-05-13-at-4.26.42-PM-1024x563.png 1024w, https:\/\/avantutor.com\/blog\/wp-content\/uploads\/2019\/05\/Screen-Shot-2019-05-13-at-4.26.42-PM-300x165.png 300w, https:\/\/avantutor.com\/blog\/wp-content\/uploads\/2019\/05\/Screen-Shot-2019-05-13-at-4.26.42-PM-768x422.png 768w, https:\/\/avantutor.com\/blog\/wp-content\/uploads\/2019\/05\/Screen-Shot-2019-05-13-at-4.26.42-PM-1140x627.png 1140w, https:\/\/avantutor.com\/blog\/wp-content\/uploads\/2019\/05\/Screen-Shot-2019-05-13-at-4.26.42-PM-552x304.png 552w, https:\/\/avantutor.com\/blog\/wp-content\/uploads\/2019\/05\/Screen-Shot-2019-05-13-at-4.26.42-PM.png 1282w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><figcaption>Select 7 &#8211; Click Review &amp; Send<\/figcaption><\/figure>\n\n\n\n<p>Click on the large &#8216;Send Message&#8217; box at the bottom right of the page. <\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"796\" src=\"https:\/\/avantutor.com\/blog\/wp-content\/uploads\/2019\/05\/Screen-Shot-2019-05-13-at-4.27.38-PM-1-1024x796.png\" alt=\"Step 7 of Getting Push Notifications to work using Airship. Send Test Message. Click Send Message.\" class=\"wp-image-284\" srcset=\"https:\/\/avantutor.com\/blog\/wp-content\/uploads\/2019\/05\/Screen-Shot-2019-05-13-at-4.27.38-PM-1-1024x796.png 1024w, https:\/\/avantutor.com\/blog\/wp-content\/uploads\/2019\/05\/Screen-Shot-2019-05-13-at-4.27.38-PM-1-300x233.png 300w, https:\/\/avantutor.com\/blog\/wp-content\/uploads\/2019\/05\/Screen-Shot-2019-05-13-at-4.27.38-PM-1-768x597.png 768w, https:\/\/avantutor.com\/blog\/wp-content\/uploads\/2019\/05\/Screen-Shot-2019-05-13-at-4.27.38-PM-1-1140x886.png 1140w, https:\/\/avantutor.com\/blog\/wp-content\/uploads\/2019\/05\/Screen-Shot-2019-05-13-at-4.27.38-PM-1-552x429.png 552w, https:\/\/avantutor.com\/blog\/wp-content\/uploads\/2019\/05\/Screen-Shot-2019-05-13-at-4.27.38-PM-1.png 1286w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><figcaption>Step 7 &#8211; Click Send Message<\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"656\" src=\"https:\/\/avantutor.com\/blog\/wp-content\/uploads\/2019\/05\/Screen-Shot-2019-05-13-at-4.30.02-PM-1024x656.png\" alt=\"Step 7 of Getting Push Notifications to work using Airship. Send Test Message. Done\" class=\"wp-image-285\" srcset=\"https:\/\/avantutor.com\/blog\/wp-content\/uploads\/2019\/05\/Screen-Shot-2019-05-13-at-4.30.02-PM-1024x656.png 1024w, https:\/\/avantutor.com\/blog\/wp-content\/uploads\/2019\/05\/Screen-Shot-2019-05-13-at-4.30.02-PM-300x192.png 300w, https:\/\/avantutor.com\/blog\/wp-content\/uploads\/2019\/05\/Screen-Shot-2019-05-13-at-4.30.02-PM-768x492.png 768w, https:\/\/avantutor.com\/blog\/wp-content\/uploads\/2019\/05\/Screen-Shot-2019-05-13-at-4.30.02-PM-1140x730.png 1140w, https:\/\/avantutor.com\/blog\/wp-content\/uploads\/2019\/05\/Screen-Shot-2019-05-13-at-4.30.02-PM-552x353.png 552w, https:\/\/avantutor.com\/blog\/wp-content\/uploads\/2019\/05\/Screen-Shot-2019-05-13-at-4.30.02-PM.png 1279w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><figcaption>Step 7 &#8211; Done<\/figcaption><\/figure>\n\n\n\n<p>Voila! <\/p>\n\n\n\n<p><a href=\"https:\/\/avantutor.com \">Happy Coding!<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Here is what I did to be able to send web push notification to users on my site who accepted receiving them. I found Airship&#8217;s documentation site slightly on the confusing side although the following page was helpful. https:\/\/docs.airship.com\/platform\/web\/getting-started\/ I&#8230; <a class=\"more-link\" href=\"https:\/\/avantutor.com\/blog\/how-i-got-web-push-notifications-to-work-on-my-site-using-airship\/\">Continue Reading &rarr;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_mi_skip_tracking":false,"footnotes":""},"categories":[44],"tags":[52,53,51],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How I Got Web Push Notifications to Work on my Site Using Airship - AvanTutor Blog - Tips, Tricks, and Resources for Mastering Coding<\/title>\n<meta name=\"description\" content=\"A brief and simple guide on how to get Web Push Notifications to work using Airship on a site with a secure HTTPS protocol and testing it with Chrome.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/avantutor.com\/blog\/how-i-got-web-push-notifications-to-work-on-my-site-using-airship\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How I Got Web Push Notifications to Work on my Site Using Airship - AvanTutor Blog - Tips, Tricks, and Resources for Mastering Coding\" \/>\n<meta property=\"og:description\" content=\"A brief and simple guide on how to get Web Push Notifications to work using Airship on a site with a secure HTTPS protocol and testing it with Chrome.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/avantutor.com\/blog\/how-i-got-web-push-notifications-to-work-on-my-site-using-airship\/\" \/>\n<meta property=\"og:site_name\" content=\"AvanTutor Blog - Tips, Tricks, and Resources for Mastering Coding\" \/>\n<meta property=\"article:published_time\" content=\"2019-05-14T00:05:45+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2019-05-14T00:05:47+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/avantutor.com\/blog\/wp-content\/uploads\/2019\/05\/Screen-Shot-2019-05-13-at-2.45.00-PM-1-1024x585.png\" \/>\n<meta name=\"author\" content=\"avansardar\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"avansardar\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/avantutor.com\/blog\/how-i-got-web-push-notifications-to-work-on-my-site-using-airship\/\",\"url\":\"https:\/\/avantutor.com\/blog\/how-i-got-web-push-notifications-to-work-on-my-site-using-airship\/\",\"name\":\"How I Got Web Push Notifications to Work on my Site Using Airship - AvanTutor Blog - Tips, Tricks, and Resources for Mastering Coding\",\"isPartOf\":{\"@id\":\"https:\/\/avantutor.com\/blog\/#website\"},\"datePublished\":\"2019-05-14T00:05:45+00:00\",\"dateModified\":\"2019-05-14T00:05:47+00:00\",\"author\":{\"@id\":\"https:\/\/avantutor.com\/blog\/#\/schema\/person\/3a1820bcdd71870ace675436f371be9e\"},\"description\":\"A brief and simple guide on how to get Web Push Notifications to work using Airship on a site with a secure HTTPS protocol and testing it with Chrome.\",\"breadcrumb\":{\"@id\":\"https:\/\/avantutor.com\/blog\/how-i-got-web-push-notifications-to-work-on-my-site-using-airship\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/avantutor.com\/blog\/how-i-got-web-push-notifications-to-work-on-my-site-using-airship\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/avantutor.com\/blog\/how-i-got-web-push-notifications-to-work-on-my-site-using-airship\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/avantutor.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How I Got Web Push Notifications to Work on my Site Using Airship\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/avantutor.com\/blog\/#website\",\"url\":\"https:\/\/avantutor.com\/blog\/\",\"name\":\"AvanTutor Blog - Tips, Tricks, and Resources for Mastering Coding\",\"description\":\"Looking for expert advice on how to improve your coding skills? The AvanTutor blog provides a wealth of resources and insights to help you become a better programmer. Our experienced tutors share tips and tricks for mastering popular programming languages such as Java, and JavaScript, as well as insights into the latest trends in software development. With regular updates and engaging content, the AvanTutor blog is your go-to resource for all things coding.\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/avantutor.com\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/avantutor.com\/blog\/#\/schema\/person\/3a1820bcdd71870ace675436f371be9e\",\"name\":\"avansardar\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/avantutor.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/81392f2a2c93b7b1c7479ed6b4115f02?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/81392f2a2c93b7b1c7479ed6b4115f02?s=96&d=mm&r=g\",\"caption\":\"avansardar\"},\"url\":\"https:\/\/avantutor.com\/blog\/author\/avansardar\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How I Got Web Push Notifications to Work on my Site Using Airship - AvanTutor Blog - Tips, Tricks, and Resources for Mastering Coding","description":"A brief and simple guide on how to get Web Push Notifications to work using Airship on a site with a secure HTTPS protocol and testing it with Chrome.","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:\/\/avantutor.com\/blog\/how-i-got-web-push-notifications-to-work-on-my-site-using-airship\/","og_locale":"en_US","og_type":"article","og_title":"How I Got Web Push Notifications to Work on my Site Using Airship - AvanTutor Blog - Tips, Tricks, and Resources for Mastering Coding","og_description":"A brief and simple guide on how to get Web Push Notifications to work using Airship on a site with a secure HTTPS protocol and testing it with Chrome.","og_url":"https:\/\/avantutor.com\/blog\/how-i-got-web-push-notifications-to-work-on-my-site-using-airship\/","og_site_name":"AvanTutor Blog - Tips, Tricks, and Resources for Mastering Coding","article_published_time":"2019-05-14T00:05:45+00:00","article_modified_time":"2019-05-14T00:05:47+00:00","og_image":[{"url":"https:\/\/avantutor.com\/blog\/wp-content\/uploads\/2019\/05\/Screen-Shot-2019-05-13-at-2.45.00-PM-1-1024x585.png"}],"author":"avansardar","twitter_card":"summary_large_image","twitter_misc":{"Written by":"avansardar","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/avantutor.com\/blog\/how-i-got-web-push-notifications-to-work-on-my-site-using-airship\/","url":"https:\/\/avantutor.com\/blog\/how-i-got-web-push-notifications-to-work-on-my-site-using-airship\/","name":"How I Got Web Push Notifications to Work on my Site Using Airship - AvanTutor Blog - Tips, Tricks, and Resources for Mastering Coding","isPartOf":{"@id":"https:\/\/avantutor.com\/blog\/#website"},"datePublished":"2019-05-14T00:05:45+00:00","dateModified":"2019-05-14T00:05:47+00:00","author":{"@id":"https:\/\/avantutor.com\/blog\/#\/schema\/person\/3a1820bcdd71870ace675436f371be9e"},"description":"A brief and simple guide on how to get Web Push Notifications to work using Airship on a site with a secure HTTPS protocol and testing it with Chrome.","breadcrumb":{"@id":"https:\/\/avantutor.com\/blog\/how-i-got-web-push-notifications-to-work-on-my-site-using-airship\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/avantutor.com\/blog\/how-i-got-web-push-notifications-to-work-on-my-site-using-airship\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/avantutor.com\/blog\/how-i-got-web-push-notifications-to-work-on-my-site-using-airship\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/avantutor.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How I Got Web Push Notifications to Work on my Site Using Airship"}]},{"@type":"WebSite","@id":"https:\/\/avantutor.com\/blog\/#website","url":"https:\/\/avantutor.com\/blog\/","name":"AvanTutor Blog - Tips, Tricks, and Resources for Mastering Coding","description":"Looking for expert advice on how to improve your coding skills? The AvanTutor blog provides a wealth of resources and insights to help you become a better programmer. Our experienced tutors share tips and tricks for mastering popular programming languages such as Java, and JavaScript, as well as insights into the latest trends in software development. With regular updates and engaging content, the AvanTutor blog is your go-to resource for all things coding.","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/avantutor.com\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/avantutor.com\/blog\/#\/schema\/person\/3a1820bcdd71870ace675436f371be9e","name":"avansardar","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/avantutor.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/81392f2a2c93b7b1c7479ed6b4115f02?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/81392f2a2c93b7b1c7479ed6b4115f02?s=96&d=mm&r=g","caption":"avansardar"},"url":"https:\/\/avantutor.com\/blog\/author\/avansardar\/"}]}},"_links":{"self":[{"href":"https:\/\/avantutor.com\/blog\/wp-json\/wp\/v2\/posts\/259"}],"collection":[{"href":"https:\/\/avantutor.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/avantutor.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/avantutor.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/avantutor.com\/blog\/wp-json\/wp\/v2\/comments?post=259"}],"version-history":[{"count":3,"href":"https:\/\/avantutor.com\/blog\/wp-json\/wp\/v2\/posts\/259\/revisions"}],"predecessor-version":[{"id":287,"href":"https:\/\/avantutor.com\/blog\/wp-json\/wp\/v2\/posts\/259\/revisions\/287"}],"wp:attachment":[{"href":"https:\/\/avantutor.com\/blog\/wp-json\/wp\/v2\/media?parent=259"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/avantutor.com\/blog\/wp-json\/wp\/v2\/categories?post=259"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/avantutor.com\/blog\/wp-json\/wp\/v2\/tags?post=259"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}