Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Advanced PWA Rules Flag

No security coverage Under active development

This module enhances the Advanced PWA module by integrating with the Flag module to send push notifications to users based on their flagged content or users. It allows you to create rules that trigger notifications when specific events occur, such as new comments on content that users have flagged, or when a user they follow publishes new content.

This module builds on the Advanced PWA module to provide additional actions utilising the Flag module. This combination of modules allows advanced flows of push notifications, utilising Rules to react to all known events whilst getting fine grained using any known conditions to Rules.

With these actions you can create rules that will send a push notifications to the devices owned by flagging users. You can create a rule to send a push notification to all users that flagged content or a user.

For content your flag might be "notify me" with a bell perhaps. You could create a rule that send a push notification to everyone who flagged the content when a new comment gets posted.

For a user you might have a follow flag. So when that user does something, such as publish new content, their followers get a push notification to all their subscribed devices.

Features

This module implements two new Rules actions:

  1. Send push notification to flagging users of content
  2. Send push notification to flagging users of user

Usage

Rules action: Send push notification to flagging users of a node.

This action requires the following context variables:

  1. Node entity. (You may need to fetch entity by ID and pass that in)
  2. Flag ID. This is the machine name of the flag you're focused on.
  3. Notification title.
  4. Message.
  5. Content link. If a user clicks the push notification, they get sent here.

Rules action: Send push notification to flagging users of a user.

This action requires the following context variables:

  1. User ID. This is the user ID who has been flagged.
  2. Flag ID. This is the machine name of the flag you're focused on.
  3. Notification title.
  4. Message.
  5. Content link. If a user clicks the push notification, they get sent here.

Additional Requirements

This module depends on the following modules

If installing using composer, all dependencies will be installed for you.

Community Documentation

A Youtube video of using this module is available here: https://youtu.be/-Rw9ICBZK4w

Ask your assistant about Advanced PWA Rules Flag

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
2
Tracked since
May 2024
Latest release
2 years ago
Releases (12 mo)
0
Maintenance
Dormant

Releases

Version Type Core PHP Release date
1.0.x-dev Dev 9–10 May 20, 2024
1.0.0-beta1 Pre-release 9–10 May 20, 2024