Please, take a look to the user_devices table, is there anything stored there?
Regards, Juan
Please, take a look to the user_devices table, is there anything stored there?
Regards, Juan
Hi Juan,
I have the same problem, my user_devices table contains:
but these devices don't appear in the Messaging section.
The problem then is that Moodle can't register the devices in Airnotifier, can you add some debugging in the code?
Just after this line: https://github.com/moodle/moodle/blob/master/message/output/airnotifier/classes/manager.php#L167
Add there a print_r($resp);
And then go to your user ids' 4 profile page, you should see there the Airnotifier responses
Regards, Juan
Hi Juan,
Thank you for your help!
I added print_r($resp); in my manager.php and shows me the following error:
But I don't understand it. I registered manually the same token in airnotifier and it works.
Thank you very much Juan!!
Managed to get it working.
Adding the extra logging helped to solve the issue. The problem was the Airnotifier URL (Site Administration -> Plugins -> Message outputs -> Mobile notifications) had a "/" at the end which was causing the request to be sent to the wrong server port so the request was timing out.
Thanks for the help Juan
hi,
I have a proberm.My user_devices table have not found android devices but only can show apple.Can you tell me why?Thank you!
Hi,
are you using a custom version of the application or the official one?
Regards, Juan