03-12-2014 05:32 AM
After window.location, the code in the index.html is not working anymore. Is it possible to use window.location and still use the code in the index.html ? (imagine that there is there code to handle push notifications for example)
Solved! Go to Solution.
03-12-2014 06:53 AM
Setting new window.location value will move you to the other page. You need to have a proper js file/code to be included there. Your original code from index.html will not be available there.
03-12-2014 09:10 AM
03-13-2014 02:16 AM
You can have access to the WebWorks API but you will need to whitelist those features through an <access> element.
For example, if I want to use the blackberry.app APIs and my config.xml is pointing at an index.html that is hosted on my own server (i.e. http://www.myserver.com), then I would need to whitelist as follows.
<access uri="http://myserver.com" subdomains="true"> <feature id="blackberry.app" /> </access>
This would allow the remote location to execute the white-listed WebWorks APIs on the device.