WordPress-Android icon indicating copy to clipboard operation
WordPress-Android copied to clipboard

Local Notification Fires for Missed Schedule on a Scheduled Post

Open ParaskP7 opened this issue 4 years ago • 2 comments

This issue is closely related to #14732.

Expected behavior

When a user is scheduling a post to be published in the future, through Publish Date and SCHEDULE NOW bottom sheet action button, and turns on the Notification to When published, on that specified date and time, when the scheduled post misses its schedule, the notification doesn't fire.

Actual behavior

When a user is scheduling a post to be published in the future, through Publish Date and SCHEDULE NOW bottom sheet action button, and turns on the Notification to When published, on that specified date and time, when the scheduled post misses its schedule, the notification fires.

Steps to reproduce the behavior

  1. Open the app, while on the main My Site tab, find the Blog Posts item under the Publish section and click on it.
  2. Add a new Blog post using the FAB button, add a title and some content, then click the PUBLISH toolbar button.
  3. A bottom sheet will open and the action button will be set to PUBLISH NOW with a Publish Date set to Immediately.
  4. Find the Publish Date and change the Date and Time to a future time, like 15' mins ahead.
  5. Within the Publish Date, turn on the Notification to When published. Now go back.
  6. The action button should be set to SCHEDULE NOW with a Publish Date set to some like Schedule for: May 27, 2021, 12:00 PM. Now click SCHEDULE NOW.
  7. Check the SCHEDULED tab and verify that your newly scheduled post is available within that list.
  8. Check the web and verify that your newly scheduled post is also available within the Posts list. Its status should be Scheduled, presented on the Date column.
  9. Wait until that specified date and time is reached and check on the scheduled post status.
  10. It will either be Scheduled if everything works as expected, or Missed schedule otherwise.
  11. In case of Missed schedule verify that the local notification got fired anyway.
Tested on [device], Android [version], WPAndroid [version]

Tested on [Pixel 4], Android [12], WPAndroid [17.4-rc-3]

ParaskP7 avatar May 27 '21 08:05 ParaskP7

This is not a bug per se, but rather a functionality that might be easily misinterpreted.

As a user I would expect the local notification to be able to read the publishing status and only fire if that is indeed published, or at least not missed. However, since this notification will be fired anyway, in case there is a scheduling miss, this might confuse the user, thinking that everything worked as expected, but without this being the case after all.

One suggestion would be to change the wording from When published to something like When it's supposed to get published. 🤔

ParaskP7 avatar May 27 '21 08:05 ParaskP7

This was reported in #5325865-zen. The user also said this:

[...] if we have followers, doesn't the post need to publish for the followers to know that there is a new blog post?

Just so I'm not misunderstanding, however, the local When published notification is completely separate from any notifications blog followers might get. Is that right?

igotdes avatar Jul 06 '22 00:07 igotdes