Moodle Native Android App and Airnotifier

Moodle Native Android App and Airnotifier

by Daniel Alencar -
Number of replies: 2

Hi, I'm working on a Android Application to access a installation of Moodle. Sometime in the future I'll put the code on Github.
Right now, I'm trying to make the Notifications work. So far, I have:

Moodle and Airnotifier installations.
Android App making two API calls for Push Notifications. They are:

core_user_add_user_device
To Airnotifiers: api/v2/tokens

Right now this is working. When I try a broadcast through Airnotifier I receive the notification as intended. But, it appears that Moodle doesn't send any notification. There is nothing on the access and error logs.

And last, this API call: message_airnotifier_get_user_devices returns no device for the current user.
I'm guessing that there is another call that needs to be called. Anyone has any idea on how to finish this?


Average of ratings: -
In reply to Daniel Alencar

Re: Moodle Native Android App and Airnotifier

by Daniel Alencar -

So... apparently it was already working. I was trying to test notifications on something that isn't creating notifications. I would like to know which actions generate notifications. I tried answering discussions and sending files to assignments. Answering did nothing. But the files did.