Skip to content

Make the address bar dissappear on Google Chrome Android to save space on the screen #21179

Closed

Description

@elpraga

Some of the owncloud apps are very usable even on mobile phones in the web interface of ownCloud (like Tasks), but the address bar of Google Chrome never disappears (opposed to dissappearing on other pages when scrolling down).

On mobile phones it does make a big difference as it takes up much valuable space on the screen.

Is there a way to make it hide?

Activity

  1. elpraga commented on Dec 14, 2015

    @elpraga
    Author

    I found someone trying to address an oposite issue, but it might help. Please note, I cannot write code, so unfortunatelly, I cannot provide a solution..

    http://stackoverflow.com/questions/25298443/force-address-bar-to-show-in-mobile-chrome-app

    Edit v2: One method that could potentially work is to use the 'Fullscreen API' and detect every time the user scrolls (using a jQuery method) - then tell the browser to exit fullscreen mode each time to keep the address bar. Bear in mind this is untested so tell me whether you have any luck with this method...

    $(window).scroll(function(){
        document.webkitExitFullscreen();
        document.exitFullscreen();
    });
    
  2. added this to the backlog milestone on Dec 14, 2015
  3. PVince81 commented on Dec 14, 2015

    @PVince81
    Contributor

    @owncloud/designers

  4. jancborchardt commented on Dec 14, 2015

    @jancborchardt
    Contributor

    @elpraga since you have a code sample ready, maybe directly prepare a pull request? :)

    Also relevant for this is hiding the header automatically on scrolling down, and showing it again on scrolling up: #7826

  5. elpraga commented on Dec 29, 2015

    @elpraga
    Author

    I am sorry to reply so late, @jancborchardt I would love to be able to prepare a pull request, but I cannot code :( The found that code when I was searching the internet about the issue, and I pasted it just in case it could give some hint, it actually does the oposite then what we would need.

    I tried to find if someone was trying to solve the same issue for other webpage, but I did not find anything, unfortunatelly, my skills are not high enough to be able to prepare the fix myself. 😢 I apologize..

  6. jancborchardt commented on Dec 29, 2015

    @jancborchardt
    Contributor

    Yeah, no worries. :) Thinking about it too, ivoking fullscreen every time is quite invasive. I would close this as duplicate of #7826

  7. elpraga commented on Dec 29, 2015

    @elpraga
    Author

    Well, well, well... I gave it another though and some more searching... and I found out that there is an option.. by adding

    <meta name="mobile-web-app-capable" content="yes">
    

    user can use the menu item in google chrome for Android to add a shortcut to the home screen and the app then appears without the address bar. Then I checked the code of OC and to my surprise it is already there, and it works as expected.

    I was about the close the issue, but I just realized that You did it..

  8. jancborchardt commented on Dec 29, 2015

    @jancborchardt
    Contributor

    ;) yep, that capability has been added a long time ago. No worries.

  9. lock commented on Aug 7, 2019

    @lock

    This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

  10. locked as resolved and limited conversation to collaborators on Aug 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions