Moodle Plugins directory: Push notifications via TwinPush (for Appcrue) | Moodle.org

Push notifications via TwinPush (for Appcrue)
AppCRUENotify message output
Enables Moodle to send messages using TwinPush API. It was developed for the notification service of AppCrue mobile application).What is AppCRUE?
AppCRUE (https://tic.crue.org/appcrue/) is a mobile App develop by the CRUE (Conference of Rectors of Spanish Universities) and Santander Bank. It is used by 44 spanish universities and more than 150 000 students.
What is TwinPush?
AppCRUE uses as notification platform TwinPush (https://twinpush.com/). TwinPush is a Marketing Mobile Platform that allows sending Push notifications to Smartphones. It offers Android SDK, IOS SDK, REST API.
This plugin can be used for any other application using TwinPush or a similar REST API.
For developing with TwinPush API
Functionality
Known issues
- The plugin is not able to send messages to users that are not registered in TwinPush. This is a limitation of the TwinPush API. In such cases, the error trace informs about [`NotificationNotCreated: Target cannot be empty`](https://developers.twinpush.com/developers/api#common-error-messages).
- In "Buffered mode" the plugin sends the message to TwinPush API using a request for each 1000 users. This means that if you send a message to 5000 users, the plugin will send 5 requests to TwinPush API. The plugin will wait for the response of each request before sending the next one. This is done to avoid overloading the TwinPush API and to avoid sending too many requests in a short period of time.
- TwinPush API does not report recipient errors unless all the recipients are invalid. This means that if a message is sent to 10 users and only 1 of them is valid, the API will return a success response. This plugin treat the message as correctly sent.
- If all the recipients are invalid, the plugin will mark the message as failed in the Moodle database. The message will not be sent to TwinPush API and the plugin will not retry to send it again. An error message will be shown in the scheduler task log.
- If an admin wants to retry failed messages, i.e. because the TwinPush API was down or the users has corrected their profile, the admin can do it resetting the status of the message to 0 in the Moodle database. There is no user interface for this, still.
- The admin can bypass the retention of failed messages in settings.
Privacy
This plugin does not storage any user information. It just sends to TwinPush the field used to match the user and the content of the message.
This plugin was developed and is being successfully used at the University of Valladolid, Spain.
License
This program is free software: you can redistribute it and/or modify it underthe terms of the GNU General Public License as published by the Free Software
Comments