My request seems pretty simple to me but I can't get it working.
I want to use Cordova as a mobile container for my already existing blog. I am using the windows platform for testing.
Here would my config.xml
<?xml version='1.0' encoding='utf-8'?>
<widget id="com.testcordova" version="0.0.1" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
<name>MyAPP</name>
<access origin="*" />
<content src="http://vmorneau.me/" />
</widget>
But it throwed me a APPX1404 error when building the app.
Then I putting back "index.html" in the content src and making a simple redirect (2 differents ways) but nothing happens. Just a blank page, as if nothing gets redirected.
Here is my index.html file:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>My Redirect</title>
</head>
<body>
<script type="text/javascript" src="cordova.js"></script>
<script type="text/javascript">
document.addEventListener("deviceready", onDeviceReady, false);
function onDeviceReady() {
window.location.href="http://vmorneau.me";
//window.open("http://vmorneau.me", '_blank');
} </script>
</body>
</html>
In your index.html, add a script to handle "deviceready" event (which means your cordova lib is ready), and inside it, try the redirect.