The only example we have is with BigBlueButton plugin. Since installing and configuring it can take a while, it's easier to simulate it:
Install the app on a device.
Open the JS console and execute the following code:
var $mmaPushNotifications = angular.element(document.querySelector('[ng-app]')).injector().get('$mmaPushNotifications');
$mmaPushNotifications.onMessageReceived({
foreground: true,
title: '<h1>A title with <b>HTML</b></h1>',
message: '<span lang="en" class="multilang">Notification text in English</span><span lang="es" class="multilang">Texto de la notificación en español</span>'
})
Check that the notification shown doesn't have HTML tags and only the right language is shown for the message.
The only example we have is with BigBlueButton plugin. Since installing and configuring it can take a while, it's easier to simulate it:
Install the app on a device.
Open the JS console and execute the following code:
var $mmaPushNotifications = angular.element(document.querySelector('[ng-app]')).injector().get('$mmaPushNotifications');
$mmaPushNotifications.onMessageReceived({
foreground: true,
title: '<h1>A title with <b>HTML</b></h1>',
message: '<span lang="en" class="multilang">Notification text in English</span><span lang="es" class="multilang">Texto de la notificación en español</span>'
})
Check that the notification shown doesn't have HTML tags and only the right language is shown for the message.