• Resolved tokyojump

    (@tokyojump)


    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!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Murali

    (@murali-indiacitys)

    Thank you, i will try your suggestions. I know about self-hosted vapid key web push notification. For one of my site created in reactjs with AWS(Amazon web services) technologies lambda, dynamodb, aws app sync, i have used VAPID key self hosted push notification using AWS lambda which sends push notification using nodejs web-push npm module using VAPID KEY generated in lambda without using Firebase. In this way we can avoid Firebase. In order to implement same change in WordPress, either we need to use web-push equivalent module in php(by importing using compose) or we need to create gutenberg modules using reactjs wordpress modules by including web-push npm module. I am thinking to create new plugin/include in this plugin as separate enhancement in future to send push notification using VAPID key instead of Firebase. It will be implemented in future. I will also invite you in github. Yes Apple supports web push notifications in ios16

    Thread Starter tokyojump

    (@tokyojump)

    thank you. Anyway, I want you to be able to disable “activity notifications”. I can’t do it except by commenting it out. I would like to have the option of “Do not send activity notifications” instead of just “Notify all activities” and “Notify group activities”. Thanks for the nice plugin.

    Plugin Author Murali

    (@murali-indiacitys)

    I will add this option in upcoming release in 1.50 which i am planning to release in 2 days. In addition to this, upcoming release is going to contain following things,

    1. Action scheduler to process more than 1000 subscribers in more than one queue with 1000 subscribers each in background mode. Since Firebase accepts 1000 deviceids per send, action scheduler will be included in upcoming release to schedule in queue (1000 device ids each queue). It will process in asynchronous way to reduce server load.
    2. Private message Thread id for mobile app in notification under data to open private message thread directly in mobile app using deep link
    3. Activity comment link in notification
    4. Search button in Device tokens list admin panel to search user id and tokens
    5. Clearing of stale/invalid tokens for webview mobile apps. For websites, this logic is already present.
    6. On demand push notification panel changes to include image link and click action link
    7. Removed character limit in on demand push notification
    8. DB table changes to include web_auth and web_256 fields in database for future use incase if users wants to migrate tokens from other push service providers
    9. Fixed problems related to post title while scheduling notifications for POST
    10. Javascript routine to receive tokens from android java app using webview javascript interface
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Feature request “Target control” and “VAPID key”’ is closed to new replies.