The push notifications infrastructure will connect push subscriptions with wiki user's **central** (not local) ID.
We need to ensure that all unread messages from all wikis for a given central user can be gathered with a single API request, and not separate API requests to every production wiki.
**AC**
[] Document the API request(s) needed to gather all unread notifications from all wikis for a central user account.
**Notes**
- This may require some looking into the Android code and the existing Echo extensionware.
- This runs for the cross-Wikipedia case, but also for the non-Wikipedias. For apps consumers they may only care about Wikipedias, but the non-apps consumers they may care about everything...or may not.
== Conclusion ==
Echo does handle SUL gracefully. It's necessary to set `notwikis` parameters to `*` to have every unread notification available from a specific User with central id configured, [[ https://www.mediawiki.org/wiki/Notifications/API | source ]].
Example request:
- https://en.wikipedia.org/w/api.php?action=query&meta=notifications&format=json¬wikis=*
The Android app also needs the actual name of the wikis that have unread notifications, e.g. "English Wikipedia", "French Wikipedia", etc., to fulfill the design requirement of showing a message like "You have 2 unread messages on English Wikipedia".
Example request:
- https://en.wikipedia.org/w/api.php?action=query&meta=notifications|unreadnotificationpages&unplimit=max&unpwikis=*&format=json¬wikis=*