Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: Android Phone HTML5
I am a new PhoneGap programmer. navigator.notification.alert() has not working on Android using phonegap. But it works on IPhone and WP7. I am developing this mobile app in Windows Phone 7.
 
Thanks for your help
 
<!DOCTYPE html>
<html>
<head>
    <meta name="viewport" content="width=device-width, height=device-height, initial-scale=1.0, maximum-scale=1.0, user-scalable=no;" />
    <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
    <title>Cordova WP7</title>
    <link rel="stylesheet" href="master.css" type="text/css" media="screen" title="no title"
        charset="utf-8" />
    <script type="text/javascript" charset="utf-8" src="phonegap.js"></script>
    <script type="text/javascript">
        function doAlert() {
            var message = "This is an Alert dialog";
            var title = "Attention!";
            navigator.notification.alert(message, title);
        };       
 
    </script>
</head>
<body>
    <h1>
        Cordova Tests</h1>
    <div id="info">
         <a href="#"  önclick="doAlert()">Click Me</a>  
    </div>
</body>
</html>
Posted 12-Sep-12 5:23am
Edited 12-Sep-12 5:58am
v3

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

You are better off submitting your problem to the authors here : https://issues.apache.org/jira/browse/CB[^]
  Permalink  
Comments
Palani Kumar.P at 13-Sep-12 4:57am
   
Thanks for your help.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



Advertise | Privacy | Mobile
Web01 | 2.8.140709.1 | Last Updated 12 Sep 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid