Prompt Permission, Rules and Flag integrations

Created on 15 June 2022, over 2 years ago
Updated 2 March 2023, almost 2 years ago

Problem/Motivation

I wanted a solution like native apps that can send user specific notifications. Further more I wanted a way to automate sending all users a push notification. Rules seems like a great option in order to cater for unique workflows via configuration.

I would like Flag integration in order to send push notifications to flagging users. Both of content (ie subscribe) and users (ie follows).

My use case is a community platform. So I want all this to rely on cron runs. As we all do, I hope to have many users.

Lastly I would like to wait for users to be logged in before asking if they want notifications. This is to earn the right to ask as platform and to make that association between device and user. Although finding a way to update the association between user and device, upon signing in would alleviate that issue.

Proposed resolution

  1. Extend advanced_pwa to associate device subscriptions to users.
  2. Extend advanced_pwa to to incorporate a permission in order to view the prompt.
  3. Develop Rules module. 2 actions: Send push notification to all & Send push notifications to user.
  4. Develop Rules Flag module. 2 actions: Send push to flagging users of content & Send push to flagging users of user.

Remaining tasks

  1. Update UID for device on signing in
Feature request
Status

Closed: duplicate

Version

1.0

Component

Code

Created by

🇬🇧United Kingdom gMaximus

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024