I am using Blackberry WebWorks to try to make a WebApp that points to my site. My site is https. In the config.xml, I have
<content src="https://example.com"/>
I also want to use some native functions of BB10, like sharing and toasting, so I also have the line
<script src="local:///cordova.js" type="text/javascript" ></script>
on https://example.com.
But once I run the app, the web inspector console says:
[blocked] The page at https://example.com ran insecure content from local:///cordova.js.
And variable blackberry is undefined so I cannot call the Blackberry functions.
How can I solve it? Your help is very much appreciated. Thank you very much!
I don't know how to solve this exactly...but this is what I'd try. Add this to config.xml:
I'd also try this, if the above doesn't work:
or
Good luck!