Hello OS community,
We have subscribed to the Anyline plugin for passport and barcode scanning in our company's mobile apps. Unfortunately, with the latest versions of the Anyline plugin, a new requirement for the 'xml-js' dependency has emerged. This has resulted in a challenge during the generation of our mobile apps on iOS, as indicated by the attached error and log files. The perplexing aspect of this situation is why OutSystems is encountering difficulty in installing this dependency during the iOS app generation process, especially considering that other dependencies are successfully installed.
Notably, this issue does not occur on Android. The necessity to upgrade to the latest Anyline versions became apparent after the deprecation of MABs 7 and 8, coinciding with the onset of this problem.
Has anyone else encountered a similar issue before? Your insights and experiences would be greatly appreciated.
Cheers.Pedro Mascarenhas
Hi @Pedro Mascarenhas , this is due to a limitation with npm, the underlying node dependency manager used by cordova to install plugins.
Since the plugin is being provided as a resource file, when cordova is installing it to the project via npm, it won't install any dependencies that it might have.
A possible workaround is to run `npm install` on the plugin before uploading it to Service Studio, this way it will contain the `node_modules` folder in it with all it's dependencies. Alternatively, if the plugin is hosted somewhere online (E.g. Github) it will install it's dependencies upon adding the plugin to the mobile app.
Regards,
João Gonçalves
Hii
Kindly refer this document resolve this issue
https://success.outsystems.com/documentation/11/extensibility_and_integration/mobile_plugins/using_cordova_plugins/
https://cordova.apache.org/docs/en/latest/plugin_ref/spec.html#preference
Thanks
Hi Sunil,We already do that, we have the plugin resource file attached and on the module Extensibility Configuration we are pointing to the plugin as it can be seen below.
Thanks a lot @João Gonçalves, your proposed solution solved the issue!!