Ionic Utah

July 2023 Meetup

PWA Notifications*

Engage your users with well-placed popups & badges

 

 

 

* Local notifications today. Scheduled and push notifications (with firebase cloud messaging) next time

Website to PWA, why?

App-like experience on the web

  • Intalls to homescreen - pick a great name and icon
  • Notifications
  • Built with web stack, instead of Android and iOS native languages
  • Skip the app store hassles, easy to update

Ionic Utah

July 2023 Meetup

Website to PWA, how?

Add a few PWA files to your website

  • webmanifest.manifest
  • serviceworker.js
  • icon.png
  • splash.png

Fairly easy to create manually, but tools make it even easier

Ionic Utah

July 2023 Meetup

Ionic Vue

  • ionic start
  • npm i -D vite-plugin-pwa @vite-pwa/assets-generator
    • Add pwa-assets.config.ts
    • Add package.json scripts
    • Add pwa section to vite.config.ts
  • npm i @vueuse/core
    • Add code to send notifications
  • Tweak code for iOS and Android
  • Add code to update app badge

Ionic Utah

July 2023 Meetup

Ionic Angular

  • ionic start
  • TBD

Ionic Utah

July 2023 Meetup

Links to everything

Ionic Utah

July 2023 Meetup

Q & A

Ionic Utah

July 2023 Meetup

Who is Todd?

  • Graduated with programming honors from HS in Silicon Valley

  • BS in Computer Science from BYU

  • QA Engineer for 8 years at Novell

  • Full-stack developer at Xactware/Verisk since 2000

  • Trained in UI/UX (BYU, UIE conf, Fluent conf, ng-conf)

  • Specialized in Accessibility, Internationalization, Mobile & Usability

  • Manager of native project (Android & iOS) until 2015

  • Migrated native to Ionic PWA in 2015, maintained until 2021

  • Part-time instructor at MTech (Angular & Ionic modules)

  • Ionic Developer Expert

  • Husband, dad, stepdad, grandpa, Christian, stoic philosophizer, 🏀 🏐, stereogram creator

Ionic Utah

July 2023 Meetup

PWA Notifications in Vue and Angular

By Todd Hale

PWA Notifications in Vue and Angular

  • 221