wordpress-mobile / wordpress-mobile/WordPress-Android

Notifications: Can't open new post notification about password-protected posts

Open
#11,517 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Expected behavior

If I am subscribed to get web/app notifications about new posts on a site, and the site publishes a password-protected post, I expect to get a notification in the app similar to what I get on the web:

Screenshot 2020-03-24 14 21 46

That notification includes a link to the post on the site so I can view it directly.

Actual behavior

In the app, I get the same notification in my notifications list, but the notification detail doesn't open. Instead, it shows this error:

You're not authorised to view this post

List Detail

As a result, I can't get a link to the post or view it from that notification.

Steps to reproduce the behavior
  1. Follow a site.
  2. Enable new post notifications for that site. (In the app, go to Notifications tab > Settings icon > Select the site under Followed Sites > Toggle on "New posts" to enable new post notifications.)
  3. Publish a password-protect post on that site.
  4. Check your notifications and confirm you see a notification for the new post.
  5. Tap the notification to try to view it.
Tested on [moto e5 play], Android [8.1.0], WPAndroid [alpha-213]

Related iOS issue: https://github.com/wordpress-mobile/WordPress-iOS/issues/13718

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

Reproduce the issue by following the listed notification steps on WordPress for Android, then trace how a new-post notification opens its detail view. Done means tapping a password-protected post notification opens the post or provides its link instead of showing the authorization error; verify the existing notification behavior remains intact.

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.