How to use Cordova Mqtt plugin in my Ionic App

#1

Hi there,

I have been trying to use the Cordova Mqtt plugin in my Ionic 2/3 app: https://github.com/arcoirislabs/cordova-plugin-mqtt
I installed the plugin using the following command:

ionic cordova plugin add cordova-plugin-mqtt

I read from the Ionic Native documentation that I need to install the Ionic Native package for the plugin using this command:
npm install @ionic-native/<plugin-name> --save

However, the mqtt plugin is not available as a package in Ionic Native. So how should I use it in my app? In specific, I would also like to use it with ionic-serve.
Any help would be highly appreciated!

I am running:
@ionic-native/core": "^4.4.0"

#3

I don’t have an idea how to use (ionic cordova plugin add cordova-plugin-mqtt ) and how to implement in my project