Coder Social home page Coder Social logo

moodle-message_appcrue's People

Contributors

juacas avatar vifito avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

vifito

moodle-message_appcrue's Issues

Still without success for submitting push messages since November 3rd, 2022

Hi @juacas,

Today, after the upgrade using the path provided for #7, we are still facing the same error:

Sending messages to YYYYYYYYY (NNNNNNN)
++ Push API Response:{"errors":{"type":"NotificationNotCreated","message":["Target can not be empty"]}} ++
* line 167 of /message/output/appcrue/message_output_appcrue.php: call to debugging()
* line 106 of /message/output/appcrue/message_output_appcrue.php: call to message_output_appcrue->send_api_message()
* line 509 of /lib/classes/message/manager.php: call to message_output_appcrue->send_message()
* line 388 of /lib/classes/message/manager.php: call to core\message\manager::call_processors()
* line 356 of /lib/classes/message/manager.php: call to core\message\manager::send_message_to_processors()
* line 346 of /lib/messagelib.php: call to core\message\manager::send_message()
* line 369 of /mod/forum/classes/task/send_user_notifications.php: call to message_send()
* line 153 of /mod/forum/classes/task/send_user_notifications.php: call to mod_forum\task\send_user_notifications->send_post()
* line 341 of /lib/cronlib.php: call to mod_forum\task\send_user_notifications->execute()
* line 198 of /lib/cronlib.php: call to cron_run_inner_adhoc_task()
* line 76 of /lib/cronlib.php: call to cron_run_adhoc_tasks()
* line 178 of /admin/cli/cron.php: call to cron_run()

So, it seems that we need to specify something into attribute target. Yes or yes.

Could you please provide some patch for it. I do not know what to put there, however, according to the API.

Thanks for your time.

not sending notificacions push since November 3rd, 2022

In our institution have found some problem with this plugin. It seems that the implementation of the push message is not fully suit.

Since November 3rd, 2022 (we have found detected this today), our Moodle instance tries to send message without success.

The problem shown in Moodle cron says something like:

Sending messages to NNNNNNNNNN (MMMMMM) ++ Push API Response:{"errors":{"type":"NotificationNotCreated","message":["Target can not be empty"]}} ++
* line 163 of /message/output/appcrue/message_output_appcrue.php: call to debugging()
* line 105 of /message/output/appcrue/message_output_appcrue.php: call to message_output_appcrue->send_api_message()
* line 509 of /lib/classes/message/manager.php: call to message_output_appcrue->send_message()
* line 388 of /lib/classes/message/manager.php: call to core\message\manager::call_processors()
* line 356 of /lib/classes/message/manager.php: call to core\message\manager::send_message_to_processors()
* line 346 of /lib/messagelib.php: call to core\message\manager::send_message()
* line 369 of /mod/forum/classes/task/send_user_notifications.php: call to message_send()
* line 153 of /mod/forum/classes/task/send_user_notifications.php: call to mod_forum\task\send_user_notifications->send_post()
* line 341 of /lib/cronlib.php: call to mod_forum\task\send_user_notifications->execute()
* line 198 of /lib/cronlib.php: call to cron_run_inner_adhoc_task()
* line 76 of /lib/cronlib.php: call to cron_run_adhoc_tasks()
* line 178 of /admin/cli/cron.php: call to cron_run()

And before sending message, the piece of code initializes an empty target stdClass.

Maybe have the protocol requisites changed?

Low level curl access is discouraged

Moodle plugins should not use low-level curl_exec() calls. Instead, a new instance of the core curl class should be used as it respects other settings such as proxy or security helpers.

Improve description at moodle.org/plugins

  • The long description text should have links to AppCrue and probably to some TwinPush API docs page, too.
  • There should be information where to obtain APIKey and AppId

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.