Closed cimigree closed 6 days ago
Just to clarify. What was happening before was the user was setting the permissions in setting, but the app was improperly detecting when that permission was being set?
@ErikSin
Just to clarify. What was happening before was the user was setting the permissions in setting, but the app was improperly detecting when that permission was being set?
There were two things wrong. Problem number one and the one that Ximena noticed, was just that the text in the modal was wrong. If you deny permissions, the next time you press the microphone the modal is supposed to say Go To Settings (see issue https://github.com/digidem/comapeo-mobile/issues/359 ) and it was saying Allow/ Not now instead. So I fixed that so it now says Go To Settings if you had previously denied permission.
Problem number two, once the user navigated back to the app from settings giving permission for the microphone, the behavior wasn't right because the modal was still open saying Allow/ Not now and if you clicked allow, you would go to settings again... You had to press Not Now, the modal would close and then when you pressed the microphone again then you would correctly be navigated to Audio. So I fixed that.
closes #831
Description
This PR removes some old console.logs. Also!
As a reminder,
adb shell pm reset-permissions
will reset the permissions (from "granted") but if they are denied, they will remain "denied"... Not sure why that is.To test
adb shell pm reset-permissions