oliveryasuna opened a new issue, #1346: URL: https://github.com/apache/cordova-ios/issues/1346
Hi, the link http://slack.cordova.io/ does not work, so I am asking for help here. I set up a very simple Cordova project. I want it to simply load an external webapp when the device is ready. My `index.js`: ```javascript document.addEventListener('deviceready', onDeviceReady, false); function onDeviceReady() { // localhost for testing. top.location.href = 'http://localhost:8080'; } ``` This all works fine. Is it possible to use the Cordova API from my webapp? I tested this by adding the [cordova-plugin-dialogs](https://cordova.apache.org/docs/en/11.x/reference/cordova-plugin-dialogs/) plugin. First, I made sure that the plugin works by adding to my `onDeviceReady`: ```javascript navigator.notification.alert('Hello', () => { }, 'Message body', 'OK'); ``` This works fine. But when I add the same thing to my webapp (I am sure that it is executed), nothing happens. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
