Cordova platform is not detecting in ionic v3

Hi all,
I stuck in a problem that in my app I am detecting the platform using‘cordova’) which should as true when we run the app in android emulator but I am getting that as false. If i change to‘mobile’) this will work.

Also, when I debug in inspector, I am getting as ‘deviceready is not fired in 5000ms’ So I suspect it is problem with cordova is not being called when we are checking platform.
Please let me know how we can proceed with this.