Uniquee and interesting problem - Can anyone come up with a solution?

Hi community,

I am facing a unique problem and its been quite time, haven’t been able to figure out a solution on my own. So sharing it on the platform.

So, I have a viewpager, and dynamically created webviews using dynamic component extension. I am using kodular webview not custom webview ( for some technical reasosns).

Now, viewpager and webviews ids are not same because there are multiple webviews and viewpagers

Now, the trouble that I am facing is, How to go back in the active viewpagers’ webview when the screen is back pressed.

Any smart solutions?

Have been working on it since long

Thanks in advance.

If you show what have tried so for, then it will be easy for others to cross check it