I have a custom app and my own airnotifier server (built from the 1.x branch, not the moodle branch).
I can send and receive push notifications when I post directly to https://MY_AIRNOTIFIER_SERVER/api/v2/push .
I can also successfully register my device in Moodle using
However, although I turned on mobile notifications for the user on all events while online and offline, none of the events trigger a push notification and I can see in the airnotifier logs the 2 servers are not communicating at all.
Here's the info that I'm sending to core_user_add_user_device
appid:[THE SHORTNAME UNIQUE IDENTIFIER FOR MY APP IN AIRNOTIFIER]
pushid:[THE IOS DEVICE TOKEN OBTAINED AT RUNTIME BY THE APP]
uuid:[THE IOS DEVICE TOKEN OBTAINED AT RUNTIME BY THE APP]
Any help will be greatly appreciated!
Unfortunately our core team do not have the resources here to help people use the open source code version to build custom apps. We provide a service where we can customise the app for anyone who needs it including the Push notifications (Airnotifier) service management. This service helps fund the improvement of the app in general: https://moodle.com/mobileapp/
I’d recommend you to check the documentation links that are available in the Forum main page or hopefully somebody else in this forum will be able to help you.
I was finally able to get it working. However, can you confirm whether Moodle's airnotifier branch works with Firebase Cloud Messaging?
Google recently deprecated Google Cloud Messaging and it seems FCM is the only way to push notifications to Android now.
Would you please let me know what did you do to solve this problem?
Thank you very much.