Problem with Hotspot Ionic 4

I’ve trying get networks on the view in Ionic 4 but I’m get this issue:

Native: tried calling Hotspot.scanWifi, but the Hotspot plugin is not installed."
[ng] [console.warn]: "Install the Hotspot plugin: ‘ionic cordova plugin add cordova-plugin-hotspot’

I would like to know if this plugin to work if I was using in device, because I’m trying to use this plugin when I run ioni serve --devapp, simulater in my decive, or I nedd build apk ?