Get reference to plugin instance from MainActivity


Can anyone tell me how to get a reference to the instance of my capacitor plugin from the MainActivity in my Android app? I require it in the onPause and onResume hooks in the MainActivity.

Love the workflow btw

Hi, I see that there are hooks available in the BridgeActivity for these events. Problem solved.

Can you pop your code here please, I am struggling with this