Note that there are some explanatory texts on larger screens.

plurals
  1. POPhonegap alert doesn't work on Android
    text
    copied!<p>I am using Codorva 2.5. I use this way to show an alert view:</p> <pre><code>navigator.notification.confirm( message, callback, 'Warning', //title options ); </code></pre> <p>It works fine on iOS but does not on Android. I don't want to use alert() function of javascript. Do I make any mistake?</p> <p>Here is config file: </p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;cordova&gt; &lt;!-- access elements control the Android whitelist. Domains are assumed blocked unless set otherwise --&gt; &lt;access origin="http://127.0.0.1*"/&gt; &lt;!-- allow local pages --&gt; &lt;!-- &lt;access origin="https://example.com" /&gt; allow any secure requests to example.com --&gt; &lt;!-- &lt;access origin="https://example.com" subdomains="true" /&gt; such as above, but including subdomains, such as www --&gt; &lt;access origin=".*"/&gt; &lt;!-- &lt;content src="http://mysite.com/myapp.html" /&gt; for external pages --&gt; &lt;content src="www/page/main/main.html" /&gt; &lt;log level="DEBUG"/&gt; &lt;preference name="useBrowserHistory" value="false" /&gt; &lt;preference name="exit-on-suspend" value="false" /&gt; &lt;preference name="splashscreen" value="splash" /&gt; &lt;preference name="disallowOverscroll" value="true" /&gt; &lt;plugins&gt; &lt;plugin name="App" value="org.apache.cordova.App"/&gt; &lt;plugin name="Geolocation" value="org.apache.cordova.GeoBroker"/&gt; &lt;plugin name="Device" value="org.apache.cordova.Device"/&gt; &lt;plugin name="Accelerometer" value="org.apache.cordova.AccelListener"/&gt; &lt;plugin name="Compass" value="org.apache.cordova.CompassListener"/&gt; &lt;plugin name="Media" value="org.apache.cordova.AudioHandler"/&gt; &lt;plugin name="Camera" value="org.apache.cordova.CameraLauncher"/&gt; &lt;plugin name="Contacts" value="org.apache.cordova.ContactManager"/&gt; &lt;plugin name="File" value="org.apache.cordova.FileUtils"/&gt; &lt;plugin name="NetworkStatus" value="org.apache.cordova.NetworkManager"/&gt; &lt;plugin name="Notification" value="org.apache.cordova.Notification"/&gt; &lt;plugin name="Storage" value="org.apache.cordova.Storage"/&gt; &lt;plugin name="FileTransfer" value="org.apache.cordova.FileTransfer"/&gt; &lt;plugin name="Capture" value="org.apache.cordova.Capture"/&gt; &lt;plugin name="Battery" value="org.apache.cordova.BatteryListener"/&gt; &lt;plugin name="SplashScreen" value="org.apache.cordova.SplashScreen"/&gt; &lt;plugin name="Echo" value="org.apache.cordova.Echo" /&gt; &lt;plugin name="Globalization" value="org.apache.cordova.Globalization"/&gt; &lt;plugin name="InAppBrowser" value="org.apache.cordova.InAppBrowser"/&gt; &lt;/plugins&gt; &lt;/cordova&gt; </code></pre> <p>My Android application structure: <img src="https://i.stack.imgur.com/pkbOh.png" alt="enter image description here"></p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload