This question is locked. New answers and comments are not allowed.
Trying to get this working but something is not right. (window.plugins is not defined).
<!--------------------index.html-------------------->
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<title>Hello, World</title>
<script src="cordova.js" type="text/javascript"></script>
<script type="text/javascript" src="Plugins/PushPlugin/PushNotification.js"></script>
<script>
document.addEventListener("deviceready", onDeviceReady, false);
function onDeviceReady() {
/**
* test device : iphone5
* message : Cannot read property 'pushNotification' of undefined[alert(window.plugins) => undefined]
*/
alert("pushNotification:"+window.plugins.pushNotification);
}
</script>
</head>
<body>
</body>
</html>
<!--------------------index.html-------------------->
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<title>Hello, World</title>
<script src="cordova.js" type="text/javascript"></script>
<script type="text/javascript" src="Plugins/PushPlugin/PushNotification.js"></script>
<script>
document.addEventListener("deviceready", onDeviceReady, false);
function onDeviceReady() {
/**
* test device : iphone5
* message : Cannot read property 'pushNotification' of undefined[alert(window.plugins) => undefined]
*/
alert("pushNotification:"+window.plugins.pushNotification);
}
</script>
</head>
<body>
</body>
</html>