Navigation

    UBports Robot Logo

    UBports Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    Webapp Creator desktop mode

    App Development
    3
    6
    344
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • dieharddan
      dieharddan last edited by dieharddan

      Hello, is there a way to load the desktop version of the website instead of the mobile? There's a banking site I want to create a webapp for, but the site doesn't appear to be designed for mobile as it becomes very crunched together and somewhat unusable.

      AppLee 1 Reply Last reply Reply Quote 0
      • AppLee
        AppLee @dieharddan last edited by

        Hello @dieharddan

        This may help you : http://docs.ubports.com/en/latest/appdev/webapp/guide.html#command-line-arguments
        I think forging the user agent might work.

        But maybe there is a more elegant solution.

        1 Reply Last reply Reply Quote 0
        • dieharddan
          dieharddan last edited by

          I'm not quite sure how to use the info you provided but looking at the webapp under custom, I noticed there's a spot to enter a custom user agent, so i tried:

          Mozilla/5.0 (X11; CrOS x86_64 8172.45.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.64 Safari/537.36

          didn't work

          screenshot20191009_074732391.png

          TotalSonic 1 Reply Last reply Reply Quote 0
          • TotalSonic
            TotalSonic @dieharddan last edited by TotalSonic

            @dieharddan - this user agent string has worked for me for a few different webapps needing desktop mode:

            Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.80 Safari/537.36

            Best regards,
            Steve Berson

            dieharddan 1 Reply Last reply Reply Quote 0
            • dieharddan
              dieharddan @TotalSonic last edited by

              @TotalSonic hmm i tried that string but it didnt change anything; i tried desktop mode on morph browser as well and it doesnt seem to do anything either. maybe has to do with being on the edge channel?

              TotalSonic 1 Reply Last reply Reply Quote 0
              • TotalSonic
                TotalSonic @dieharddan last edited by

                @dieharddan said in Webapp Creator desktop mode:

                @TotalSonic hmm i tried that string but it didnt change anything; i tried desktop mode on morph browser as well and it doesnt seem to do anything either. maybe has to do with being on the edge channel?

                hmmm - maybe it is a problem of Webapp Creator not functioning correctly in the Edge channel currently - or maybe it is a problem with the website you are trying to link to. You could test out the Wire UT and MeWe UT webapps that are available in the Open Store - because they both use the user agent string I posted to bypass what would either wise get you routed to a page asking you to download Android apps.

                Best regards,
                Steve Berson

                1 Reply Last reply Reply Quote 0
                • First post
                  Last post