Title for Push notification

Title for Push notification

by Gary Lynch -
Number of replies: 3
Hi All
Hope everyone is well smile

Having spent a time customising our version of the app, which is a very steep learning curve!!!

I have everything working as it should big grin except i can't find where i need to rename the push notification that the mobile phone receives (which is shown on the handset).

Can someone please point me in the right direction?  which file and which line please?


gary

Average of ratings: -
In reply to Gary Lynch

Re: Title for Push notification

by Juan Leyva -
Picture of Core developers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers
The title is hard-coded in the Airnotifier server... And that was a very bad idea sad

https://github.com/jleyva/airnotifier/blob/moodle2/hooks/moodle.py#L28 and https://github.com/jleyva/airnotifier/blob/moodle2/api/__init__.py#L345

Maybe I should change that with a generic name, something like.. "Notification", what do you suggest?

In reply to Juan Leyva

Re: Title for Push notification

by Gary Lynch -

Hi Juan

I think you maybe right to rename to 'Notification'. This would make it easier our you could just post how to create your own air notifier from scratch tongueout

With many people now customising your fantastic work it would be a shame only for it not to show the complete customisation.

i have customised the app for my organisation replacing the icons etc and renaming to WMFS Ecademy only for the push notification to come back as Moodle Mobile with my icon.

I personally don't mind that but my managers will sad

I do have to thank you and your team for your work and continued dedication to this project


Regards Gary