You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by GitBox <gi...@apache.org> on 2021/04/14 09:42:47 UTC

[GitHub] [cordova-android] Heddy147 opened a new issue #1206: Lost Focus after Fullscreen exit

Heddy147 opened a new issue #1206:
URL: https://github.com/apache/cordova-android/issues/1206


   # Bug Report
   
   ## Problem
   
   ### What is expected to happen?
   After entering in fullscreen mode of a video then press the back button of android the fullscreen mode exits.
   If you then press the back button again it should dispatch the 'backbutton' event.
   
   
   ### What does actually happen?
   After entering in fullscreen mode of a video then press the back button of android the fullscreen mode exits.
   If you then press the back button again it does not dispatch the 'backbutton' event and closes the app.
   
   ## Information
   <!-- Include all relevant information that might help understand and reproduce the problem -->
   The focus does not requested after "hide the custom view". So the context of the 'backbutton' is not the WebView.
   
   
   ### Command or Code
   <!-- What command or code is needed to reproduce the problem? -->
   in #822 is fix to avoid this bug: https://github.com/apache/cordova-android/issues/822#issuecomment-552271879
   In `CordovaWebViewImpl.java:hideCustomView` add `engine.getView().requestFocus();` after `engine.getView().setVisibility(View.VISIBLE);`(Line 312)
   
   
   ### Environment, Platform, Device
   <!-- In what environment, on what platform or on which device are you experiencing the issue? -->
   Android, testet on Samsung SM-G780F (Galaxy S20 FE). Other developers on other android devices have the same issue.
   
   
   ### Version information
   <!--
   What are relevant versions you are using?
   For example:
   Cordova: Cordova CLI, Cordova Platforms, Cordova Plugins
   Other Frameworks: Ionic Framework and CLI version
   Operating System, Android Studio, Xcode etc.
   -->
   cordova-cli: 10.0.0
   cordova-android: 9.0.0
   
   
   ## Checklist
   <!-- Please check the boxes by putting an x in the [ ] like so: [x] -->
   
   - [x] I searched for existing GitHub issues
   - [x] I updated all Cordova tooling to most recent version
   - [x] I included all the necessary information above
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


[GitHub] [cordova-android] th3hamm0r commented on issue #1206: Lost Focus after Fullscreen exit

Posted by GitBox <gi...@apache.org>.
th3hamm0r commented on issue #1206:
URL: https://github.com/apache/cordova-android/issues/1206#issuecomment-819677166


   We're currently facing an issue, which seems a bit related: In our case, if we listen for the "backbutton" event directly on the app start (after deviceready), it won't be called unless the user first clicks at the webview/app.
   
   On older devices (eg. Android 6) this is working. On devices with Android 10 and 11, the user has to touch the app screen first, otherwise the "backbutton"-event won't be fired.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


[GitHub] [cordova-android] ljudbane commented on issue #1206: Lost Focus after Fullscreen exit

Posted by GitBox <gi...@apache.org>.
ljudbane commented on issue #1206:
URL: https://github.com/apache/cordova-android/issues/1206#issuecomment-836958900


   > We're currently facing an issue, which seems a bit related: In our case, if we listen for the "backbutton" event directly on the app start (after deviceready), it won't be called unless the user first clicks at the webview/app.
   > 
   > On older devices (eg. Android 6) this is working. On devices with Android 10 and 11, the user has to touch the app screen first, otherwise the "backbutton"-event won't be fired.
   
   This looks like an issue with Splash screen plugin. I've had a similar issue that BACK button closed the app unless something was clicked inside the app. Once 'it got focus' the BACK button started working normaly, i.e. it was caught by my handler. [Relevent issue from splash screen project](https://github.com/apache/cordova-plugin-splashscreen/issues/186).
   
   Sorry for going off-topic a bit, i just wanted to clarify that BACK button not working at application start is a different issue.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


[GitHub] [cordova-android] ucsbricks commented on issue #1206: Lost Focus after Fullscreen exit

Posted by GitBox <gi...@apache.org>.
ucsbricks commented on issue #1206:
URL: https://github.com/apache/cordova-android/issues/1206#issuecomment-849440030


   Any news when this PR will be merged?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


[GitHub] [cordova-android] Heddy147 commented on issue #1206: Lost Focus after Fullscreen exit

Posted by GitBox <gi...@apache.org>.
Heddy147 commented on issue #1206:
URL: https://github.com/apache/cordova-android/issues/1206#issuecomment-820130977


   > We're currently facing an issue, which seems a bit related: In our case, if we listen for the "backbutton" event directly on the app start (after deviceready), it won't be called unless the user first clicks at the webview/app.
   > 
   > On older devices (eg. Android 6) this is working. On devices with Android 10 and 11, the user has to touch the app screen first, otherwise the "backbutton"-event won't be fired.
   
   Yes, I have to click the webview/app, the focus is back to the webview and it fires the "backbutton"-event.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


[GitHub] [cordova-android] erisu closed issue #1206: Lost Focus after Fullscreen exit

Posted by GitBox <gi...@apache.org>.
erisu closed issue #1206:
URL: https://github.com/apache/cordova-android/issues/1206


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


[GitHub] [cordova-android] Hanzofm commented on issue #1206: Lost Focus after Fullscreen exit

Posted by GitBox <gi...@apache.org>.
Hanzofm commented on issue #1206:
URL: https://github.com/apache/cordova-android/issues/1206#issuecomment-825539502


   Same here with cordova-android 9.0.0 version


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org