I did all the required steps to create new cordova plugin as mentioned in the below question and I succeed:
Start android activity from cordova plugin
I ran the following command cordova plugin ls
and I got the following result:
com.example.sample.plugin 0.0.1 "PluginName"
So my plugin is added to my project.
But still I am not able to import it in the .ts file my ionic 4 project. What import statement should I write to be able to use the plugin?