TruckMovers / cordova-plugin-remote-injection

DEPRECATED: Cordova plugin to allow a remote site to interact with cordova's javascript APIs when loaded within a cordova app.
Apache License 2.0
91 stars 95 forks source link

CRIInjectFirstFiles is not working on IOS with multiple files list #26

Closed silversonicaxel closed 7 years ago

silversonicaxel commented 7 years ago

The plugin offer the chance to inject multiple files with the following command tag for the config.xml

<preference name="CRIInjectFirstFiles" value="www/js/dist/vendor.js,www/js/dist/injected.js" />

For Android, everything works fine, javascript is injected into the remote site. For IOS it is not the case. I can confirm that for already two projects (two different work projects) the second file, maybe also the first but we did not check this scenario, is not injected at all. The solution of the problem was using just one file, so this

<preference name="CRIInjectFirstFiles" value="www/js/dist/injected.js" />

It works but it is not in line with the docs of the plugin.

bradleyjames commented 7 years ago

Thanks for the report @silversonicaxel but I'm not able to reproduce. Can you provide an example project that shows the behavior?

bradleyjames commented 7 years ago

Closing as a result of no response.

ycwjjjj commented 7 years ago

I have compile error even only one file injection. Cordova ios version 4.4.0.

kumarsanjay435 commented 6 years ago

Injection is working for the landing component of the app. Other places native calls are not working. Please help