muraliwebworld / push-notification-plugin-for-wordpress-websites

Push Notification WordPress plugin in php, javascript using Firebase httpv1 for websites, Android/IOS mobile apps with PWA progressive web app
https://wordpress.org/plugins/push-notification-for-post-and-buddypress/
GNU General Public License v3.0
12 stars 1 forks source link

No image in notification when I publish the video #12

Open cvrle77 opened 1 month ago

cvrle77 commented 1 month ago

There is a bug. Well, not a bug per se, but overlooking on your side.

I made a post, and placed a video inside the post instead of the image. By doing so, Wordpress doesn't generate featured image from video. For that purpose, I have a plugin (Automatic Featured Images from Videos) which grabs the thumbnail from the Youtube, and set it as featured image, during the Publish procedure, or if I save draft post.

Your plugin is rushing to send notification before this other plugin picks up the image (which happens when I press Publish), and as a result, featured image at that moment is blank. This results in a notification without image.

But this only happens on 1st post publish, because after the post publishing, featured image is grabbed and set, and I can send proper notifications.

Scheduling at this stage also wouldn't help, because it would still not be able to pick up the featured image that generates during the publishing procedure.

If you could set a plugin timing in such a fashion, to wait for other plugins to finish, and then start it's job, it would be great. I am not sure how Perfecty solved that problem, maybe they always schedule notification a few seconds in the future after the post has been published, or something like that.

If you could rectify this problem, it would be great.

muraliwebworld commented 1 month ago

I will look into this in future because trigger is based on add action priority, in upcoming release i am changing add action trigger to transistion status (once status is changed) or i will add option to schedule inside the post the editor