I'm developing Mobile app add on that communicates with custom local plugin in Moodle 2.6. One scenario of use I need to cover is to provide some personalized interventions based on certain user action. For example, when user visit some page, several sub-plugins in the Moodle web application will be triggered, and some of them might provide certain intervention such as warning, recommendation, etc.
The problem is in that these sub-plugins are to be developed based on machine learning algorithms, and sometimes it might take some time for processing, so user might have a warning produced immediately, and recommendation might be produced 30 seconds later, or he might have no intervention.
I thought that pushing this interventions from Moodle web application to Mobile device might be more efficient then having a poll that will check in frequent intervals if there is some intervention for user to be displayed. At least, there will be no delays in providing feedback.
However, I've never used push notifications and I'm not sure if it could be used in this way, and if it is the best solution for my scenario. The other thing is that I don't want users to have to enable push notifications in order to make it work. It should always work.
I would appreciate any advice on this issue.
Thanks,
Zoran