I created a cordova project, added the iOS platform and built the project. After that I opened the .xcodeproj in Xcode, built it and the homepage showed the sample app homescreen. I then created another js file with the following content in the Staging/js folder
In index.html, I added
and called the function
However no alert appears! How to fix? I am using xCode 7.2.1 and Cordova 5.4.1.