wordpress-mobile / wordpress-mobile/WordPress-Android
Local Notification Fires for Missed Schedule on a Scheduled Post
Nobody has claimed this yet.
- 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
- Open the app, while on the main
My Sitetab, find theBlog Postsitem under thePublishsection and click on it. - Add a new
Blog postusing theFABbutton, add a title and some content, then click thePUBLISHtoolbar button. - A bottom sheet will open and the action button will be set to
PUBLISH NOWwith aPublish Dateset toImmediately. - Find the
Publish Dateand change theDate and Timeto a future time, like 15' mins ahead. - Within the
Publish Date, turn on theNotificationtoWhen published. Now go back. - The action button should be set to
SCHEDULE NOWwith aPublish Dateset to some likeSchedule for: May 27, 2021, 12:00 PM. Now clickSCHEDULE NOW. - Check the
SCHEDULEDtab and verify that your newly scheduled post is available within that list. - Check the web and verify that your newly scheduled post is also available within the
Postslist. Its status should beScheduled, presented on theDatecolumn. - Wait until that specified date and time is reached and check on the scheduled post status.
- It will either be
Scheduledif everything works as expected, orMissed scheduleotherwise. - In case of
Missed scheduleverify 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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