Click here to Skip to main content
15,867,308 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi , 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 is 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?

What I have tried:

I have tried


mMtCentralManager = MTCentralManager.getInstance(getActivity());
            mMtCentralManager = MTCentralManager.getInstance(getContext());
Posted
Updated 22-Nov-22 22:38pm
v2

1 solution

were you able to find solution for this ?
 
Share this answer
 
Comments
Richard Deeming 23-Nov-22 4:53am    
If you want to ask for more information, click the "Have a Question or Comment?" button under the question and post a comment. Do not post your comment as a "solution" to the question.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900