We installed Airnotifier 3 because with Airnotifier 2 (branch Moodle) and changes to Firebase with push messages and new FCM protocol sending push notifications to Android didn't work.
Can Moodle 3.9 LTS work with the default Airnotifier 3 and a custom branded mobile app directly? Because once configured to use Firebase we are experiencing problems receiving and sending Android push notifications. Or does it just work fine with the standard app and the moodle branded apps?
Moodle uses private repo for Airnotifier, and in case you want your notifications to work you should ask moodle to build a branded app for you or maybe they can offer you some kind of instance to make notifications work but the code is private and it won't work!
All the best,
All the best,
I have the same question, I wouldn't mind paying the 500 EUR / year for the premium services but I'd like to keep the App development in-house based on the open source code base of the Moodle Mobile App.
Hola Daniel,
Moodle HQ uses a heavily customised and modified version of Airnotifier 2 connected to our apps portal subscription API,
Moodle HQ uses a heavily customised and modified version of Airnotifier 2 connected to our apps portal subscription API,
Unfortunately, we don't have the resources to maintain a vanilla version of Airnotifier ready to be used by anyone.
My recommendation would be to debug the payload you receive in Airnotifier to check if you need to change/adapt something
Regards, Juan
Hi Daniel,
I was able to get it working with these instructions:
https://developerck.com/setting-up-airnotifier-push-notification-in-customized-moodle-mobile-app/
I had to adjust the Moodle source code, since on Android the app would crash whenever a push message came in:
1. Go to file message/output/airnotifier/message_output_airnotifier.php
2. Edit file and go to line number 125, put the following code:
unset($extra->notification);
I was able to get it working with these instructions:
https://developerck.com/setting-up-airnotifier-push-notification-in-customized-moodle-mobile-app/
I had to adjust the Moodle source code, since on Android the app would crash whenever a push message came in:
1. Go to file message/output/airnotifier/message_output_airnotifier.php
2. Edit file and go to line number 125, put the following code:
unset($extra->notification);
$curl->setopt(array('CURLOPT_TIMEOUT' => 2, 'CURLOPT_CONNECTTIMEOUT' => 2));
$curl->setHeader($header);
// put the follwing line after above lines
unset($extra->notification);
Hope this helps!
Kind regards,
Romeo
Romeo
Hi I'm trying to set up Airnotifier to use with Moodle too, I'm using Airnotifier 3 and I'm trying to connect it with Moodle 4.0 but I couldn't This error keep showing. Have you encountered this issue? Thanks in advance
I think you haven't configured it properly. It should have been https not http. All the best,
I try to access it using httpS but it doesn't work (maybe I have to configure the airnotifier server but I don''t know how), also I found some tutorial online, that also use HTTP so I don't think this is the problem