Push Notification - notification not received

Push Notification - notification not received

by mamoun hourani -
Number of replies: 1
Hello


I just connected moodle mobile to my moodle website

I'm having many problem with my notifications and push notifications

the push notification only works for messages, and when I open notification in the app  it appears nothing

I tested the app in chrome  to see network request , and the "WS: Push" have no errors

 I noticed in my website, when I open Configure notification methods for incoming messages

user configure for masssaging

it says that : "No registered devices. Devices will automatically register after you allow a Moodle iOS app to receive push notifications."
even tho that theres devices in sql tables :-

sql tables for user devices

Also I noticed a problem with the messages , I think it's involved:
after sending an instance message , it returens Unexpected end of JSON input

and that were the details:

SyntaxError: Unexpected end of JSON input    at Object.parse (native)    at Object.Y.namespace.parse (https://elearning.dt-ads.com/theme/yui_combo.php?rollup/3.17.2/yui-moodlesimple.js&rollup/1467088608/mcore-debug.js:24483:18)    at SENDMSGDIALOG.success (https://elearning.dt-ads.com/theme/yui_combo.php?3.17.2/handlebars-base/handlebars-base.js&3.17.2/handlebars-compiler/handlebars-compiler.js&m/1467088608/core/handlebars/handlebars-debug.js&m/1467088608/core/notification/notification-ajaxexception-debug.js&m/1467088608/core/notification/notification-alert-debug.js&m/1467088608/core/notification/notification-exception-debug.js&m/1467088608/core_message/messenger/messenger-debug.js:3401:39)    at _notify (https://elearning.dt-ads.com/theme/yui_combo.php?rollup/3.17.2/yui-moodlesimple.js&rollup/1467088608/mcore-debug.js:13680:35)    at notify (https://elearning.dt-ads.com/theme/yui_combo.php?rollup/3.17.2/yui-moodlesimple.js&rollup/1467088608/mcore-debug.js:13709:24)    at _notify (https://elearning.dt-ads.com/theme/yui_combo.php?rollup/3.17.2/yui-moodlesimple.js&rollup/1467088608/mcore-debug.js:13372:17)    at _procSubs (https://elearning.dt-ads.com/theme/yui_combo.php?rollup/3.17.2/yui-moodlesimple.js&rollup/1467088608/mcore-debug.js:13498:36)    at fireSimple (https://elearning.dt-ads.com/theme/yui_combo.php?rollup/3.17.2/yui-moodlesimple.js&rollup/1467088608/mcore-debug.js:13465:18)    at _fire (https://elearning.dt-ads.com/theme/yui_combo.php?rollup/3.17.2/yui-moodlesimple.js&rollup/1467088608/mcore-debug.js:13447:29)    at Object.fire (https://elearning.dt-ads.com/theme/yui_combo.php?rollup/3.17.2/yui-moodlesimple.js&rollup/1467088608/mcore-debug.js:14600:22)




--------------------------------------------------------------------------------------------------
All advices are really appreciated.
 
Thanks.

Moodle 3.1+ (Build: 20160526)
Moodle Mobile 3.1.0

----------------------------------------------------------------------------------------

Mamoun Hourani

maamoon95@hotmail.com

Phone:+971555134747



Average of ratings: -
In reply to mamoun hourani

Re: Push Notification - notification not received

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

Hi,

you should disable debugging in your site to avoid this messages to appear, is under administration / development / debugging (be sure that display errors is NOT set)

Juan