iOS: HTML in Notifications

iOS: HTML in Notifications

by James Hamilton -
Number of replies: 5

I'm just so super happy with Moodle Mobile Apps. A minor UI thing for iOS though, perhaps it can be solved Moodle 2.8 side? When users receive notification on iOS it prints the HTML from the message. See the attached for detail. 




Any ideas for a fix?

Average of ratings: -
In reply to James Hamilton

Re: iOS: HTML in Notifications

by Juan Leyva -
Picture of Core developers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers

Hi James,

I just created this issue:

https://tracker.moodle.org/browse/MOBILE-1131

We will fix it in the app side (stripping the HTML tags)

Regards, Juan

In reply to Juan Leyva

Re: iOS: HTML in Notifications

by James Hamilton -

Excellent. 

Looking forward to V2 also.

In reply to James Hamilton

Re: iOS: HTML in Notifications

by Dani Palou -
Picture of Core developers Picture of Moodle HQ Picture of Peer reviewers Picture of Plugin developers

Hi James,

we can fix this for notifications received when the app is in foreground (active), but we can't do anything when the app is in background since the notifications are handled by an external code that shows exactly what Moodle is sending, without filters. Ideally Moodle (or in this case, the BigBlueButton plugin) should strip the HTML tags before sending the notifications.

Regards,

Dani

In reply to Dani Palou

Re: iOS: HTML in Notifications

by James Hamilton -

Hey Dani, 

Thanks for the update. 

Perhaps I should log a bug with Moodle and the Messaging plugin? These types of notifications are typically generated by event monitoring rule subscriptions, but the same thing happens when sending messages and with forum notifications. 


Forum Notification


Thoughts?

James

EDIT: Added news forum notification screenshot

In reply to James Hamilton

Re: iOS: HTML in Notifications

by Juan Leyva -
Picture of Core developers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers

Hi James,

I will create the issue, maybe we should filter the text in the Airnotifier instance (Push server) and not Moodle.

Regards, Juan