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

    Allowing Guitar Tuner App to use Microphone

    Scheduled Pinned Locked Moved App Development
    10 Posts 4 Posters 1.3k Views 2 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.
      • lmhL Offline
        lmh
        last edited by lmh

        Dear all,
        I've been experiencing some difficulties with my guitar tuner app I'm developing. I'm totally new to all this so I might be overlooking something essential.

        I have developed a simple guitar tuner app with HTML/CSS/JS. It works fine in any browser (It's not a webapp tho! It's a native app and all the resources necessary are local) I test it with on my Laptop.
        I have converted it into a .click package and managed to run it on my UT Phone (Nexus 5). When I start the app I am prompted to allow Microphone access which I allow. Now the problem is that this access is never really granted. First of all the tuner does not work because it gets no signal from the microphone and in the 'Security & Privacy' Setting the app is not listed as having access to the microphone. So how can I grant this app acces to the microphone?
        What am I missing here?

        libremaxL 1 Reply Last reply Reply Quote 1
        • libremaxL Offline
          libremax @lmh
          last edited by

          @lmh Hello, it works for Guitar Tools; may be you can find the solution in its source code: https://github.com/t-mon/guitar-tools

          Donate anonymously 1€/$ by year to UBports, all Ubuntu Touch users can do it ! Demonstration:
          https://forums.ubports.com/topic/1262/donate-anonymously-1-by-year-to-ubports-all-ubuntu-touch-users-can-do-it-demonstration/

          1 Reply Last reply Reply Quote 0
          • lmhL Offline
            lmh
            last edited by

            Thanks for the reply! It actually doesn't for me. The 'Guitar Tools' App doesn't work on my Nexus 5. It freezes after a few seconds and the 'more sophisticated' components of the app like the tuner doesn't work in those first few seconds. But I'll have a look at their code anyway

            libremaxL 1 Reply Last reply Reply Quote 0
            • libremaxL Offline
              libremax @lmh
              last edited by libremax

              @lmh On my N5 Guitar Tool gets signal from the microphone and in the 'Security & Privacy' Setting the app is listed and I grant this app acces to the microphone. Generally speaking most functions work, I only get an issue with the chord function.

              Anyway, my intention was not at all to discourage you to develop and publish your app.
              At the contrary, you are more than welcome to give a choice in that domain.

              Donate anonymously 1€/$ by year to UBports, all Ubuntu Touch users can do it ! Demonstration:
              https://forums.ubports.com/topic/1262/donate-anonymously-1-by-year-to-ubports-all-ubuntu-touch-users-can-do-it-demonstration/

              1 Reply Last reply Reply Quote 0
              • flohackF Offline
                flohack
                last edited by

                Well existing guitar tools is not a web application. I think that the browser does not get microphone access currently, even though it requests it. Maybe try with an online conferencing page as like whereby.com if you can be heard.

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

                libremaxL 1 Reply Last reply Reply Quote 1
                • libremaxL Offline
                  libremax @flohack
                  last edited by

                  @Flohack Of course, you are right, I try to give access to morph browser to tuner online and it doesn't work either.

                  Donate anonymously 1€/$ by year to UBports, all Ubuntu Touch users can do it ! Demonstration:
                  https://forums.ubports.com/topic/1262/donate-anonymously-1-by-year-to-ubports-all-ubuntu-touch-users-can-do-it-demonstration/

                  1 Reply Last reply Reply Quote 0
                  • lmhL Offline
                    lmh
                    last edited by lmh

                    Thanks @Flohack and @libremax. Yes, I observe the same behaviour with morph and the online tuner. But since my app isn't a web application I don't see why morph would have anything to do with it. It could just be a case of RTFM on my part, i.e. that I set the wrong policy group (http://docs.ubports.com/en/latest/appdev/platform/apparmor.html).... I'm working on it now

                    1 Reply Last reply Reply Quote 0
                    • lmhL Offline
                      lmh
                      last edited by

                      So after studying this a bit I came to the conclusion that I mixed a few things up. So my tuner IS of course a web application. So if Morph Browser is not allowed to access the mic then neither should be any web app, right? I understand the security issues with a browser allowed to access these system components but it does strike me as odd that it should be a priori impossible to grant these permissions on a case to case basis - so to speak. What is also odd is that according to the UT Tweak Tool my app does indeed have access to the microphone

                      lduboeufL 1 Reply Last reply Reply Quote 0
                      • lduboeufL Offline
                        lduboeuf @lmh
                        last edited by

                        @lmh This is a current Morph Browser limitation, you cannot access Microphone and Camera see https://github.com/ubports/morph-browser/issues/399

                        1 Reply Last reply Reply Quote 1
                        • lmhL Offline
                          lmh
                          last edited by

                          Thanks so much @lduboeuf for pointing this out!!! This certainly explains all of the above described behaviour!!!

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