Created
April 7, 2013 23:16
-
-
Save jrbistuer/5333027 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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