Skip to content

Pending drafts local notifications #14240

@develric

Description

@develric

Not sure there is a real issue, but since I will not be able to look into it soon-ish, creating this so it's not lost 😄

Don't think it's urgent so adding it to GK project for now.

Expected behavior

The following is what I understood the feature should look like (so my interpretation of it 😄 )

In Notifications settings, the Notify me on pending drafts flag should deactivate/activate local AlarmManager notifications reminding the user about drafts they created on the app but they didn't promote to Published.

Actual behavior

With that flag on or off I did not get local notifications

Steps to reproduce the behavior

The relevant code is in PendingDraftsNotificationsUtils and NotificationsPendingDraftsReceiver. I reduced on purpose the NotificationsPendingDraftsReceiver.ONE_DAY variable to 60 * 1000 so to accelerate the tests. For completeness I'm not even sure we are using that Notify me on pending drafts anymore (but better to confirm it).

  • Create a draft post and save it
  • You can check the alarms are scheduled using this adb shell dumpsys alarm | grep -i "org.wordpress.android"
  • Wait for the first alarm trigger (60 seconds in my accelerated test)
  • Notification was not triggered for me
Tested on [OnePlus 7T], Android [10], WPAndroid [16.9 develop]

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions