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

Issues with custom url scheme #36

Open ccorcos opened 7 years ago

ccorcos commented 7 years ago

Hey, I'm using this package along with this one to register a custom url scheme with my application. I'm also using appcache to cache all the assets locally on the device.

I'm having an issue that I think might be related to this package -- sometimes when I open the application with a protocol url, the entire app breaks and all I see is a blank white page (I don't even see the index.html file).

One thing I suspect might be happening and I'm curious to hear your input: when I start the app, I sometimes see some error logs and the webpage ends up on about:blank. I think what might be happening is that this plugin tries to inject the cordova scripts on this page even though there's no document or window and so there's an error and it never recovers.

Anyways I'm not sure about this, but its a really had bug for me to track down. I'd appreciate any help or suggestions. I'm able to reproduce it much more frequently in production than locally which is pretty annoying considering I can't see any debug logs in production...