Push Notifications at custom moodle mobile

Re: Push Notifications at custom moodle mobile

av Lucio Monter -
Antall svar: 2

Hello Juan,

First of all thanks for all the great jobs you guys are doing and keeping it as Open Source. It's just amazing and give small company like us the possibility to survive in the business jungle.

Then we need a little hint if it's possible.

We manage to customize the mobile app and set up an Air Notifier server for Push Notification,

We are experimenting some broadcasting directly from air notifier and notifications go fine both as plain text and json payload. 

But we don't figured out how the push notification, handled by the app, would recognize where to go inside the app itself.

For example, if we send an instant message, the tap on the notification will lead the user directly to the message part of the app, showing the received message.

We see in the payload content of the notifications there are parameters such as "type" or "urlparams" but we are not able to find where in the app those variables are handled...

Thanks in advance for your support

Regards

Lucio Monterubbiano


Som svar til Lucio Monter

Re: Push Notifications at custom moodle mobile

av Juan Leyva -
Bilde av Core developers Bilde av Moodle HQ Bilde av Plugin developers Bilde av Testers

Hi,

look for this line of code:

$mmPushNotificationsDelegate.registerHandler(

There is a special handler for treating push notifications and redirecting the user interface

Juan

Gjennomsnittlig vurdering:Useful (1)