The Echo notifications API module currently only returns notifications that are enabled for web. This behavior is hard-coded (here and here). The apps rely on this API module to gather push notification data, but some data may be missing if the notification type is disabled for the web notifier type. Results should not be omitted solely because they are disabled for web.
Proposed change: This API module should be updated to accept a notifier type parameter, with a default value of web for backward compatibility.
List of steps to reproduce (step by step, including full links if applicable):
- Enable push notifications in the Android or iOS app
- Set notification preferences for a notification type to push ("Apps") only
- Perform an action that triggers the notification
- Request notifications from api.php?action=query&meta=notifications
What happens?:
The notification is excluded from the API response.
What should have happened instead?:
The notification should be included in the API response.