Skip to content

Instantly share code, notes, and snippets.

@jrbistuer
Created April 7, 2013 23:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jrbistuer/5333027 to your computer and use it in GitHub Desktop.
Save jrbistuer/5333027 to your computer and use it in GitHub Desktop.
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="format-detection" content="telephone=no" />
<meta name="viewport" content="user-scalable=no, width=device-width, target-densitydpi=device-dpi" />
<title>PhoneGap</title>
<script type="text/javascript" charset="utf-8" src="cordova-2.5.0.js"></script>
<script type="text/javascript" charset="utf-8" src="SamplePlug.js"></script>
<script type="text/javascript" charset="utf-8">
document.addEventListener("deviceready", onDeviceReady, false);
console.log("AQUI 1");
function onDeviceReady() {
window.echo("echome", function(echoValue) {
console.log("AQUI 2");
navigator.notification.alert(echoValue == "echome"); // should alert true.
});
}
</script>
</head>
<body>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment