Topic on Project:Support desk

Notifications to Android

10
Gryllida (talkcontribs)

Can I get notifications from Extension:Echo (and other extensions using same mechanism, seeing as "Other MediaWiki extensions can make use of Notifications to send their own notifications; Thanks and DiscussionTools are two such extensions") pushed to Android? If this is not implemented, please guide me how to do it regarding the available API and examples of similar open-source apps, then I can try to develop this feature. I would like to do this as part of an app which is not focused on Wikipedia only, it should allow the users to specify the address of the wiki (or multiple wikis) where to get the notifications from in their Android device.

TheDJ (talkcontribs)

The notifications can be pushed to the (Wikipedia) mobile app, by going Preferences -> Notifications and checking the notifications for the 'Mobile' channel.

As there is only a Wikipedia Android app, those are the only sites of which you can push the notifications to Android. As Application notifications need to be configured by the website owner and registered etc etc, I don't think you can push them to your own app.

TheDJ (talkcontribs)

Of course you can build your own push server to push them. But then you'd have to fetch them using the api from this server, which would be less than ideal, as you'd have to pull them in that case, before you can push, which is pretty inefficient.

Bawolff (talkcontribs)

I guess someone could implement push notifications on the real site instead of the app.

Gryllida (talkcontribs)

Hi TheDJ, Bawolff, thank you for your replies. How does it work in the English Wikipedia app? Where is the push server?

TheDJ (talkcontribs)
Bawolff (talkcontribs)
Gryllida (talkcontribs)

Thanks. I've found the latter link useful as there is an api query that allows to subscribe to receive new notification. Example of how to leverage this in a tiny sample Android app would be very helpful.

(The infrastructure team is now known as Content Transform Team. @MSantos (WMF) @SLopes-WMF)

Gryllida (talkcontribs)

TheDJ, Bawolff, I appreciate your advice however I've had zero progress because I don't know what I need to do to achieve what I want: write an app that allows me to receive on-wiki notifications as push notifications on Android, and allow me to write custom code to send additional notifications triggered by events which I want which are not included in Echo/Notifications system. Could you please provide me with step by step instructions?

I can administer a software on a toolforge server if it is needed.

TheDJ (talkcontribs)

I also don't know. I can only give the pointers that I have given.

Reply to "Notifications to Android"