Adding link in moodle mobile app

Adding link in moodle mobile app

by Lijin Digitera -
Number of replies: 5

I want to add add link in side menu of moodle mobile app for a plugin module. how can I Do that?

Average of ratings: -
In reply to Lijin Digitera

Re: Adding link in moodle mobile app

by Dani Palou -
Picture of Core developers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

Hello Lijin,

right now the only way is to use remote addons. The side menu only allows addons with a state, not just links, so you would have to create a state that launches your link and register this addon using $mmSideMenuDelegateProvider.

However, we are working on a feature to allow adding links easily from your Moodle (it will require Moodle 3.3 or higher). This is the issue:

https://tracker.moodle.org/browse/MDL-57410

Kind regards,

Dani

In reply to Dani Palou

Re: Adding link in moodle mobile app

by Lijin Digitera -

Hi Dani,

Thanks for your response.


We are trying to integrate cordova inapp purchase plugin in moodle mobile app. But as per  remote-addon documentation, known issues section, seems like we will not be able to do this. What do you suggest to achieve inapp purchase in moodle mobile app? Does 3.3 version address  this requirement (to add additional plugins)?. 

Thanks in advance for your help.


Regards

Lijin

In reply to Lijin Digitera

Re: Adding link in moodle mobile app

by Dani Palou -
Picture of Core developers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

Hello Lijin,

Cordova plugins cannot be added dynamically. They cannot be changed once the app is compiled, so what you're trying to achieve is not possible with the official app. You'll need to create your custom app with this feature and publish it in the stores.

You might be interested in our branded apps: https://moodle.com/mobileapp/

Kind regards,

Dani

In reply to Dani Palou

Re: Adding link in moodle mobile app

by Charan Sri -

We are trying to develop a similar kind of addon in moodle mobile app2. We have developed sample addon for In-app purchase using iOS. But we are having a issue while trying to execute the app. when we try to call the addon using menu, it is throwing a error.

Error: Could not resolve 'site.mm_credit' from state 'site'.

Is there a away, how can we run a addon individually??

In reply to Charan Sri

Re: Adding link in moodle mobile app

by Dani Palou -
Picture of Core developers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

Hi Charan,

that's weird, it seems like the state isn't registered in the $stateProvider. Can you please verify that the code where you register the state is executed and that everything is ok?

Kind regards,

Dani