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

Android App demanded

Scheduled Pinned Locked Moved Support
12 Posts 4 Posters 2.5k Views 3 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.
    • G Offline
      guru
      last edited by guru 12 Jun 2017, 17:11 6 Dec 2017, 16:33

      The problem is the User Agent string our BQ web-app sends. Try this side in your BQ to see what it is: http://myip.nl
      Perhaps BBC (...) misinterpret it.

      Yep, it says: ... Ubuntu 15.04 like Android 4.4

      Matthias

      M 1 Reply Last reply 6 Dec 2017, 17:10 Reply Quote 0
      • M Offline
        Mark @guru
        last edited by 6 Dec 2017, 17:10

        @guru thanks for that.
        User Agent: Mozilla/5.0 (Linux; Android 5.0; Nexus 5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/38.0.2125.102 Mobile Safari/537.36
        Is this something we can edit?

        G F 2 Replies Last reply 6 Dec 2017, 17:21 Reply Quote 0
        • G Offline
          guru @Mark
          last edited by guru 12 Jun 2017, 18:38 6 Dec 2017, 17:21

          @Mark One could try to make a private copy of the browser icon desktop file and modify it therein.

          When I posted this, I was on the road... here are the details:
          In your private desktop file, change the Exec= line by adding something like --user-agent-string='Your UA' to it,

          1 Reply Last reply Reply Quote 1
          • F Offline
            flohack @Mark
            last edited by 7 Dec 2017, 14:59

            @Mark we can but we cannot make exceptions for 1000s of websites out there. Canonical already put a few exceptions hardcoded into the browser. Imagine it has to compare and parse through a database of 1000Β΄s of entries for each URL it loads - that will be slow.

            We can completly fake the user agent theoretically but IMHO its a very bad practice to have websites designed only for a limited amount of pages. Sometimes it helps writing to the site owner to work out a better browser detection.

            BR Florian

            My languages: πŸ‡¦πŸ‡Ή πŸ‡©πŸ‡ͺ πŸ‡¬πŸ‡§ πŸ‡ΊπŸ‡Έ

            M 1 Reply Last reply 9 Dec 2017, 20:08 Reply Quote 0
            • M Offline
              Mark @flohack
              last edited by 9 Dec 2017, 20:08

              @Flohack list.Thanks for your reply. I have in the past had a good response from developers at the BBC regarding Linux compatibility. I wondered whether some websites demand an Android app because of something in UBPorts identifying the browser as running on Android or simply because that was their default assumption if we were not identified on their list.

              F 1 Reply Last reply 10 Dec 2017, 16:47 Reply Quote 0
              • F Offline
                flohack @Mark
                last edited by 10 Dec 2017, 16:47

                @Mark They check the user agent, they see Android inside and send you to the APp download. Unfortunately we need to send "Android" since most websites switch to mobile mode based on such identifiers. So its a trap we cannot avoid. If an organization or company does not want to support mobile browsing, we cant do much about it.

                My languages: πŸ‡¦πŸ‡Ή πŸ‡©πŸ‡ͺ πŸ‡¬πŸ‡§ πŸ‡ΊπŸ‡Έ

                1 Reply Last reply Reply Quote 0
                • M Offline
                  Mark
                  last edited by 10 Dec 2017, 17:09

                  Thanks for the clarification. That makes sense with my old BQ4.5 as full websites are ungainly at best. However as we move towards convergence then we may need the option to be able to select between a desktop or a mobile browser depending on what we want to do. Not that there is an urgent need for that now.

                  G F 2 Replies Last reply 10 Dec 2017, 17:58 Reply Quote 0
                  • G Offline
                    guru @Mark
                    last edited by 10 Dec 2017, 17:58

                    @Mark Maybe we could have some include file in phablet's HOME which overwrites the default UserAgent string.

                    matthias

                    1 Reply Last reply Reply Quote 0
                    • F Offline
                      flohack @Mark
                      last edited by 10 Dec 2017, 19:03

                      @Mark Thats already covered with the current browser, see https://github.com/ubports/webbrowser-app/blob/vivid-dev/src/Ubuntu/Web/ua-overrides-desktop.js.in and https://github.com/ubports/webbrowser-app/blob/vivid-dev/src/Ubuntu/Web/ua-overrides-mobile.js.in so there are 2 files for UA overrides. How it determines when to use which I dont know...

                      BR

                      My languages: πŸ‡¦πŸ‡Ή πŸ‡©πŸ‡ͺ πŸ‡¬πŸ‡§ πŸ‡ΊπŸ‡Έ

                      M 1 Reply Last reply 10 Dec 2017, 19:24 Reply Quote 0
                      • M Offline
                        Mark @flohack
                        last edited by 10 Dec 2017, 19:24

                        @Flohack If you don't know there is not much chance of me knowing πŸ™‚ I knew my way around programing (machine code) the old Sinclair ZX81 but other than maintaining a basic website or two over the years and keeping our linux computers at home updated and working I've let that side of my knowledge get very rusty in the intervening 35+ years. I really appreciate the effort you folks are putting into maintaining and developing this OS. I use my phone daily and hope, when it finally gets too old, that there will be a good open source OS to run on my next one. Preferably UBPorts.

                        1 Reply Last reply Reply Quote 0
                        • L Offline
                          L-00147 Banned
                          last edited by 26 Dec 2017, 09:24

                          This post is deleted!
                          1 Reply Last reply Reply Quote 0
                          • First post
                            Last post