Support » Plugin: OneSignal - Web Push Notifications » Notification for scheduled post

  • mihannsell


    Hello people!
    What is the expected behaviour of your service in this scenario:
    1. I create a draft
    2. I set the publishing time in the future – so I save the post as a scheduled one
    3. I change the publishing time while the post is still not published.

    From what I see in the code this case is not addressed.
    From what we see in our websites behaviour – the notifications are being send according to the initial publishing date.

    How can we make modifications work according to the latest publishing date modifications?

Viewing 3 replies - 1 through 3 (of 3 total)
  • mihannsell


    Here’s an interesting piece of code, that suggests that you are able to cancel existing notification and save it again after modifications.

    here’s the code’s spot:

    If you could detect whether there was a modification of publishing date and – if so – cancel existing notification and create a new one to replace the previous one – that would address the case I described.

    Plugin Author OneSignal


    Hi @mihannsell ,
    Could you please try this version of the plugin? This should fix your issue.




    I browsed the code changes in GitHub, this might work, thanks.
    Will wait for a WP repo update though.

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.