Feature request “Target control” and “VAPID key”
-
I have 3 feature requests.
1, “Control of target to send PUSH notification”
I’m using Buddypress’s PUSH notifications, but I only need notifications for “personal messages” and “replies to activities” and nothing else. Too many notifications can overwhelm users.
Currently I’m disabling the feature by commenting it out from your plugin like this, but I’d like to have the ability to officially disable it in the settings.
code from pnfpb_push_notification.php : 127
if ( function_exists('bp_is_active') ) { /* //Push notification(if enabled) for BuddyPress new acitivities based on plugin settings add_action('bp_activity_posted_update', array($this, $this->pre_name .'icforum_push_notifications_web'), 5, 3 ); // Scheduled push notification(if enabled) for new buddypress activities add_action( $this->pre_name .'cron_buddypressactivities_hook', array($this, $this->pre_name .'icforum_push_notifications_web')); //Push notification(if enabled) for BuddyPress new acitivities under group based on plugin settings add_action( 'bp_groups_posted_update', array($this, $this->pre_name .'icforum_push_notifications_web_group'), 1, 4 ); // Scheduled push notification(if enabled) for new group activities add_action( $this->pre_name .'cron_buddypressgroupactivities_hook', array($this, $this->pre_name .'icforum_push_notifications_web_group')); */ //Push notification(if enabled) for BuddyPress Private messages. It will Send notifications only to userid. add_action( 'messages_message_sent', array($this, $this->pre_name .'icforum_push_notifications_private_messages'), 10 ); //Push notification(if enabled) for new comments posted on BuddyPress acitivities based on plugin settings add_action( 'bp_activity_comment_posted', array($this, $this->pre_name .'icforum_push_notifications_comment_web'), 5, 3 ); /* // Scheduled push notification(if enabled) for new comments in Buddypress Activities add_action( $this->pre_name .'cron_buddypresscomments_hook', array($this, $this->pre_name .'icforum_push_notifications_comment_web')); add_action ( 'bp_group_header_actions', array($this, $this->pre_name .'subscribe_to_group_button'), 1); add_action ( 'bp_directory_groups_actions' , array($this, $this->pre_name .'subscribe_to_group_button'), 1); */ }
2, “PUSH notification using VAPID key”
Now everyone doesn’t need FireBase to do push notifications. PUSH notifications can be fully self-hosted with the great VAPID key.
Also, APIs that are currently required to be used are officially considered “old” by Google, and there is a risk that they will be abolished in the near future.
I would like you to modify it so that you can send PUSH notifications with the VAPID key.
3, “Push notification subscription management function”
Currently, I feel that the subscription management (shortcode) for PUSH notifications displayed in popups with javascript is difficult to use. Also, I’m in trouble because the settings for the unused functions I wrote earlier are displayed. Also, javascript pop-ups are strongly affected by the site and device, and may not be displayed properly depending on the environment.
If possible, I would like to be able to set notifications in a non-popup format.
By the way, I think it would be the most convenient and smart if a section that can be set for BuddyPress user settings “Notifications” was added. The hook for that is:
do_action( ‘bp_notification_settings’ )
do_action( ‘bp_members_notification_settings_before_submit’ )Thank you for always useful plug-ins.
Sorry for sending so many requests all of a sudden.
This request I send to you may be my personal intention, but I’m sure it will be useful to many other people.If you can’t, I’ll make my own fork of your plugin under the GPL license. However, I consider you to be a professional in this field, and I would like you to try it.
Alternatively, if you invite me to github, I’d love to help with that.
PWAs and push notifications will come in big waves as Apple supports the features next year. Victory to you!
- The topic ‘Feature request “Target control” and “VAPID key”’ is closed to new replies.