Page MenuHomePhabricator

Experimental mock for a "no new data" notification
Open, MediumPublic


This is spawned off from the findings in the spike.

Upon receipt of a push notification, the iOS app will need to fetch the notifications API to determine which content to show.

There is an edge case where the user could receive a push notification yet not have any new notifications to display here. We will be unable to suppress the notification without switching to a highly unreliable silent push method of delivery. This task is to determine what the content of this "empty" notification should be and how it should act when tapped.

There is also a chance that our Notification Service extension, which is called to populate the push notification content and will be fetching from the notifications API to see what is new, could take too long to respond. Maybe the service is down or the user's connection is flaky at this point. We will need to define some fallback content for the notification in this case.

Design needs
  • Designs for a notification with no data from the API and that is neutral enough to be used in cases where no new alert will be shown in the app

Proposed designs


Lock screenLong press
Lock screen notifications_ No new data.png (812×375 px, 377 KB)
Long press_ No new data.png (812×375 px, 245 KB)

Event Timeline

Tsevener created this task.
LGoto triaged this task as Medium priority.Jun 22 2021, 8:33 PM
LGoto removed a project: Epic.
LGoto moved this task from Needs Triage to Product Backlog on the Wikipedia-iOS-App-Backlog board.
Tsevener raised the priority of this task from Medium to Needs Triage.Jun 22 2021, 8:33 PM

@Tsevener Will we know when there is no notification vs. when there is a notification but we can't fetch the content? (eg. in the second scenario is it still possible that there isn't actually a notification?) Thanks!

Good point @cmadeo, it is possible in the second scenario that there isn't actually a notification, but the fetch has failed or is taking too long in some way so we wouldn't know for sure.