mirror of
https://github.com/purplecabbage/phonegap-plugins.git
synced 2026-01-13 16:38:08 -05:00
30 lines
798 B
HTML
30 lines
798 B
HTML
<!DOCTYPE HTML>
|
|
<html>
|
|
<head>
|
|
<title>PhoneGap</title>
|
|
<script type="text/javascript" charset="utf-8" src="phonegap-1.4.1.js"></script>
|
|
<script type="text/javascript" charset="utf-8" src="LocalNotification.js"></script>
|
|
<script type="text/javascript">
|
|
document.addEventListener("deviceready", appReady, false);
|
|
|
|
function appReady() {
|
|
console.log("Device ready");
|
|
if (typeof plugins !== "undefined") {
|
|
plugins.localNotification
|
|
.add({
|
|
date : new Date(),
|
|
message : "Phonegap - Local Notification\r\nSubtitle comes after linebreak",
|
|
ticker : "This is a sample ticker text",
|
|
repeatDaily : false,
|
|
id : 4
|
|
});
|
|
}
|
|
}
|
|
|
|
document.addEventListener("deviceready", appReady, false);
|
|
</script>
|
|
</head>
|
|
<body>
|
|
<h1>Hello Android Notifications!</h1>
|
|
</body>
|
|
</html> |