Get reference to plugin instance from MainActivity

Hi

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
Mike

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

Thanks

1 Like