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

injection not working ! #44

Open muxuehen opened 6 years ago

muxuehen commented 6 years ago

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

ahmetws commented 6 years ago

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.