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
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 :-
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.
----------------------------------------------------------------------------------------
Mamoun Hourani
maamoon95@hotmail.com
Phone:+971555134747