'Capacitor Plugin cannot get any instance of an sdk in Android

I am building a capacitor plugin for the minew sdk to get and receive beacon data.

I have the ios part working great but I have hit an issue with Andriod.

My plugin code is

    public void startScan(PluginCall call) {
   mMtCentralManager = MTCentralManager.getInstance( this); 
}

The error reads Required Type: Context Provided" MinewPlugin

How do I get the correct context so I can attach an instance of this method?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source