Best way to move survey block to Moodle Mobile App

Best way to move survey block to Moodle Mobile App

Bởi Brian Merritt -
Số lượng các câu trả lời: 1
Hình của Particularly helpful Moodlers

Our students are making more use of the Moodle Mobile App, which is great, but the survey block we have doesn't of course appear in the mobile app.

If we have implement a custom app (custom branding and notifications server only at the moment) what is the best way to add a survey, assuming we have a web rest api that given a username will respond with the relevant survey data which can be rendered in html.

Any pointers in terms of how to insert the survey notification and render links within the app?  

Best regards


Brian

Trung bình điểm đánh giá: -
Để phản hồi tới Brian Merritt

Re: Best way to move survey block to Moodle Mobile App

Bởi Dani Palou -
Hình của Core developers Hình của Moodle HQ Hình của Particularly helpful Moodlers Hình của Peer reviewers Hình của Plugin developers

Hi Brian,

I guess this "block survey" is a custom plugin (or a 3rd party plugin) you have installed in your site. In that case, you can follow this guide about how to adapt plugins to work in the app. If it's a block plugin then you might want to look for "CoreBlockDelegate" in that guide. This solutions is usually easier to implement.

If you want to include this as part of the custom app's code then it will depend on where do you want that block to be displayed. Again, if this is a block plugin then you want to look for "CoreBlockDelegate" in the app, you will find examples of other blocks but AFAIK right now we don't have any block that sends data to the server. Basically you'll have to include some button and implement the logic to send that data to your WebService/API.

Cheers,

Dani

Trung bình điểm đánh giá:Useful (1)