cordova-plugin-remote-injection
cordova-plugin-remote-injection copied to clipboard
injection not working !
in config.xml
<preference name="AppendUserAgent" value="com.myWebApp" />
<preference name="CRIInjectFirstFiles" value="www/js/init.js" />
<preference name="CRIPageLoadPromptInterval" value="5" />
<preference name="CRIShowConnectionErrorDialog" value="0" />
but remote website cannot load my js filie. help help
I also have this and then I figure out that my project cannot load the plugin successfully.
You can add a debug pointer to pluginInitialize method on CDVRemoteInjectionPlugin.m file and then make sure that the plugin is initializing correctly. If compiler doesn't stop on the breakpoint, you need to check your configuration.