pow-app icon indicating copy to clipboard operation
pow-app copied to clipboard

User Centric Push Notifications

Open olavea opened this issue 5 years ago • 3 comments

IDEAS 💡💡💡 : Let the user choose:

  • [ ] "Yes I do want 'THIS type of push notification' for THIS reason."
  • [ ] "Yes I want my push notification to be measured by the POW!-Machine to make the app easier to use later."
  • [ ] make up your own cryptic* standard message in push notification. *By cryptic I mean text useless to an advertiser.
  • [ ] Set your own dates for push notification

olavea avatar Feb 18 '20 06:02 olavea

Questions:

  1. Does "setTimeout" mean that the user can "set the timeout" and get the notification when she wants it?
  2. Where should this code go? In a component?

I just put it here.

add gatsby-plugin-offline

Here is the original code example from: https://www.gatsbyjs.org/packages/gatsby-plugin-offline

// show a notification after 15 seconds (the notification // permission must be granted first) setTimeout(() => { self.registration.showNotification("Hello, world!") }, 15000)

// register a custom navigation route const customRoute = new workbox.routing.NavigationRoute(({ event }) => { // ... }) workbox.routing.registerRoute(customRoute)

olavea avatar Feb 18 '20 08:02 olavea

I added gatsby-plugin-offline after I read this blog post by https://github.com/hashimwarren : https://www.gatsbyjs.org/blog/100days/pwa/#challenge-7-make-your-gatsby-site-work-with-poor-internet-service-and-offline

olavea avatar Feb 18 '20 12:02 olavea

Great research, and thoughts 🎉

raae avatar Aug 04 '20 09:08 raae