OneSignal is a free push notification service for web and mobile apps. This plugin makes it easy to integrate your website with OneSignal Push Notifications. https://onesignal.com
Other
78
stars
42
forks
source link
Push Notifications not working from Front-End Create Post Form #295
I also have the plugin working for CPTs created using WP Admin so that when a new post is created or updated, a Push Notification is sent.
However, when using a front-end form to create posts that are automatically 'published' upon submitting, the posts are not sending push notifications. The posts are definitely showing up from the front-end form when checking for them in WP-Admin, both for regular WP Posts and my CPTs. When checking these, the box for send push notification in WP-Admin is checked but for whatever reason, any posts created using a front-end form are not sending the push notifications.
I have the OneSignal WP Plugin is set up and working as expected for regular WP posts to send Push Notifications when posts are created in WP Admin.
I've tried implemented the code snippets described here so that the posts automatically send a notification: https://documentation.onesignal.com/docs/web-push-wordpress-faq#onesignal_meta_box_send_notification_checkbox_state-filter
I also have the plugin working for CPTs created using WP Admin so that when a new post is created or updated, a Push Notification is sent.
However, when using a front-end form to create posts that are automatically 'published' upon submitting, the posts are not sending push notifications. The posts are definitely showing up from the front-end form when checking for them in WP-Admin, both for regular WP Posts and my CPTs. When checking these, the box for send push notification in WP-Admin is checked but for whatever reason, any posts created using a front-end form are not sending the push notifications.