Can not create mobile add-on if addon requires not included cordova dependencies

Can not create mobile add-on if addon requires not included cordova dependencies

by Jérôme Mouneyrac -
Number of replies: 3

Hi,

can you confirm this fact (so I do not throw, on wrong reasons, the possibility to create a remote Moodle mobile addon plugin):

we can not create a remote Mobile addon plugin for one of these reasons:

* the addon depends of a cordovaPlugins not listed in https://github.com/moodlehq/moodlemobile2/blob/master/package.json

* the addon depends of a 3rd party plugin not installed and doing some bridging with native code.

* the addon requires android/ios permission not already supported by the official app

In my case I would like to add an audio recording activity to the official app (without publishing a new app). The plugin would use https://cordova.apache.org/docs/en/latest/reference/cordova-plugin-media/index.html in order to be able to record audio, play it, analyse audio file without using the audio-capture plugin.

Cheers,

Jerome


Average of ratings: Useful (1)
In reply to Jérôme Mouneyrac

Re: Can not create mobile add-on if addon requires not included cordova dependencies

by Elton LaClare -

Yes. It would be helpful if someone from the development team could clarify this.

In reply to Jérôme Mouneyrac

Re: Can not create mobile add-on if addon requires not included cordova dependencies

by Juan Leyva -
Picture of Core developers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers

Hi Jerome,

yes, you are right, the app won't support plugins using plugins not included in the current app distribution.

In any case, we'll discuss internally if we should include some of the Cordova Plugins even if we don't use it, to allow remote add-ons developers to use them.

I must say that I'm reluctant to this, since platform changes may impact on this (recently for iOS 10 we struggle to make the app to compile because of some required changes in the media-capture plugin).

PS: I updated the docs to mention this: https://docs.moodle.org/dev/Moodle_Mobile_Remote_add-ons#Known_issues

Regards, Juan

Average of ratings: Useful (1)
In reply to Juan Leyva

Re: Can not create mobile add-on if addon requires not included cordova dependencies

by Jérôme Mouneyrac -

Hi Juan,

thanks for clarifying that. We still have not give up on the add-one solution yet (managing an airnotifier server for a custom app still feel an heavy task). 

Cheers,

Jerome