Airnotifier 3 and a custom branded app

Airnotifier 3 and a custom branded app

by Daniel Ribes -
Number of replies: 7

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?

Average of ratings: -
In reply to Daniel Ribes

Re: Airnotifier 3 and a custom branded app

by Ardian Deari -
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,
In reply to Ardian Deari

Re: Airnotifier 3 and a custom branded app

by Romeo S -

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.

In reply to Daniel Ribes

Re: Airnotifier 3 and a custom branded app

by Juan Leyva -
Picture of Core developers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers
Hola Daniel,

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
In reply to Daniel Ribes

Re: Airnotifier 3 and a custom branded app

by Romeo S -
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);

$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
In reply to Romeo S

Re: Airnotifier 3 and a custom branded app

by Lê Bá Hùng -
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
"This site is not able to connect to the notifications server"

In reply to Lê Bá Hùng

Re: Airnotifier 3 and a custom branded app

by Ardian Deari -
I think you haven't configured it properly. It should have been https not http. All the best,
In reply to Ardian Deari

Re: Airnotifier 3 and a custom branded app

by Lê Bá Hùng -
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