Moodle for mobile

Server not communicating with airnotifier server

 
Picture of Ori Wallenstein
Server not communicating with airnotifier server
 

Hello,


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 

/webservice/rest/server.php?moodlewsrestformat=json&wsfunction=core_user_add_user_device&wstoken=


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]

name:iPhone

model:iPhone10

platform:iOS

version:11.3

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!



Thank you,


Ori

 
Average of ratings: -
Picture of Dani Palou
Re: Server not communicating with airnotifier server
Core developersMoodle HQParticularly helpful MoodlersPlugin developers

Hi,

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.

Kind regards,

Dani

 
Average of ratings: -
Picture of Ori Wallenstein
Re: Server not communicating with airnotifier server
 

Hi Dani,


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.


Thanks,


Ori

 
Average of ratings: -
Picture of Dani Palou
Re: Server not communicating with airnotifier server
Core developersMoodle HQParticularly helpful MoodlersPlugin developers

Hi Ori,

GCM has been deprecated, but it will still work until April 2019. Airnotifier hasn't migrated to FCM yet, but we will do it in a near future.

Kind regards,

Dani

 
Average of ratings: -
Picture of Payman Zafar
Re: Server not communicating with airnotifier server
 

Hi Ori,

Would you please let me know what did you do to solve this problem?

Thank you very much.

 
Average of ratings: -