Allowing Guitar Tuner App to use Microphone
-
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? -
@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
-
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
-
@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. -
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.
-
@Flohack Of course, you are right, I try to give access to morph browser to tuner online and it doesn't work either.
-
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
-
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
-
@lmh This is a current Morph Browser limitation, you cannot access Microphone and Camera see https://github.com/ubports/morph-browser/issues/399
-
Thanks so much @lduboeuf for pointing this out!!! This certainly explains all of the above described behaviour!!!