Click here to Skip to main content
12,505,591 members (53,771 online)
Rate this:
 
Please Sign up or sign in to vote.
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
Updated 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 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)

  Print Answers RSS
Top Experts
Last 24hrsThis month


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

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100