UBports Robot Logo UBports Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Webapp Creator desktop mode

    Scheduled Pinned Locked Moved App Development
    6 Posts 3 Posters 1.1k Views 1 Watching
    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.
      • dieharddanD Offline
        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.

        AppLeeA 1 Reply Last reply Reply Quote 0
        • AppLeeA Offline
          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
          • dieharddanD Offline
            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

            TotalSonicT 1 Reply Last reply Reply Quote 0
            • TotalSonicT Offline
              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

              dieharddanD 1 Reply Last reply Reply Quote 0
              • dieharddanD Offline
                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?

                TotalSonicT 1 Reply Last reply Reply Quote 0
                • TotalSonicT Offline
                  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

                  Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                  Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                  With your input, this post could be even better 💗

                  Register Login
                  • First post
                    Last post