wordpress-mobile / wordpress-mobile/WordPress-Android

Local Notification Fires for Missed Schedule on a Scheduled Post

Open
#14,733 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

[Pri] Low [Type] Enhancement Notifications Post Status
Dominant language
Kotlin
Stars
3.2k
Forks
1.4k
Avg merge
1d 11h
Merged PRs (30d)
69

Description

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]

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the flow from My Site > Blog Posts through the SCHEDULE NOW bottom sheet, then compare a successfully published post with one marked Missed schedule. Done means the When published local notification does not fire when the scheduled post misses its schedule; verify the behavior on the tested Android setup.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, kotlin
Domain
mobile
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.