ionic-team / capacitor

Build cross-platform Native Progressive Web Apps for iOS, Android, and the Web ⚡️

Home Page:https://capacitorjs.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Please add onWindowFocusChanged to the bridge[Feature]:

a-poliusov opened this issue · comments

Description

Please add onWindowFocusChanged to the bridge

Platforms

  • iOS
  • Android
  • Web

Request or proposed solution

Hi. I'm unable to exploit onWindowFocusChanged, because there are not callback from the bridge. Please add this.
This method is crucial for fullscreen video view.

Alternatives

We don't have any alternatives except modifying MainActivity, which is not possible.

Additional Information

No response

And what do you want to do with onWindowFocusChanged? call javascript code? call native code from a plugin?

Why do you say modifying MainActivity is not possible?

Android code is generated every time and we don't have it in our repo.
Capacitor has the basic dummy project that is created when capacitor is built and we employ this.

I want to call js code from the callback.
This is just good to have all the handles to the android activity code.