Marko Devcic
Marko Devcic
I just tried it on Android 12 and I got the result Needs Rationale. This is for the clean app install, no prior permissions are given.
I just tried to request all three location permissions at the same time and got the same result as you. But reading the official docs https://developer.android.com/develop/sensors-and-location/location/permissions and their examples of...
Thanks for the detailed explanation and possible solution. I am looking into this.
I tried to reproduce this with the included `examples` project. I added to MainActivity `onCreate` call this ``` CoroutineScope(Dispatchers.Main).launch { PermissionRequester.instance().request(Manifest.permission.CALL_PHONE) .collect { Log.d("PEKO", "RESULT: $it") } } ``` And...
Yes, I can reproduce it. For some reason, multiple request calls (at the same time) are causing the hang. But with this latest example, if I wrap it in `withContext(Dispatchers.IO)`...
An easy fix would be to not allow multiple requests at the same time. As also the native request dialog can only be shown for one request at a time....
I think it is fixed in this branch https://github.com/deva666/Peko/tree/deadlock_fix I replaced `Deferred` with `Channel` and it seems to be working. @arberg Before I make a release can you maybe try...
I've been playing with some solutions and it seems that your initial suggestion, wrapping getting the native requester with IO dispatcher seems like the easiest solution. I cannot test with...
Looking into it, thanks for reporting!
Although I could not reproduce it, I refactor that part of the code. New release v3.0.4 should fix it