this alert displaying in cordova application
alert("welcome all");
when run application in ios 7, displays
index.html welcome
to remove index.html
have used cordova plugin cordova-plugin-dialogs
document.addeventlistener("deviceready",alert,false); function alert(){ navigator.notification.alert("welcome all"); }
but it's not working me
please let know few details, display native alert in ios cordova application.
note: here, not calling native functionalities, app developed in html,javascript only. maintained content in platforms/ios/www folder
. when have started run app on iphone 6 device or simulator it's showing alert per https://www.dropbox.com/s/st5jpq4r0hq0fqk/alert.png?dl=0
recently when executed app, message have received
the old format of exec call has been removed (deprecated since 2.1). change to: cordova.exec(null, null, "", "",[null,"notification","alert",["hi doing testing in alert","good job1","okay1"]]);
to resolve title name loading in alert, can use method using custom plugins in javascript, no need use cordova plugins
.
in application have used, sweetalert
plugin in javascript.
sweetalert
plugin can download link http://t4t5.github.io/sweetalert/
it's easy integrate plugin in our application.
after integration, can pass message format
swal("displaying new message using sweetalert plugin");
Comments
Post a Comment