Ionic error

Hi
install onesignal in my project . and when run ionic serve
i see this error

Error: Uncaught (in promise): Error: cordova_not_available

Cordova is not available using ionic serve

That is what the error says and how it is intended

native plugin works only in emulator or real device, your error shows it’s not found cordova. so Run your project in emulator or real device by running command: ionic cordova run [] [–emulator or --device]

right … success . i do it