I got an answer to my question. I struggled, and many developers are trying to solve it, and when I found a stupid mistake, I was so stupid.
I wrote
document.addEventListener("deviceready", onDeviceReady(), false);
instead
document.addEventListener("deviceready", onDeviceReady, false);
This is why I get an error message. Cordoba is undefined and no other listeners register.
source share