Document.addEventListener is not working in ios


#1

Hello sir,
I have used bellow controller. But document.addEventListener is not working in ios but android is working.

.controller(‘SignInCtrl’, function($stat$cordovaSQLite,$cordovaDevice) {
document.addEventListener(‘deviceready’, function () {
alert(“device ready”);
})
})

Please help me…