-
I'm encountering an issue while testing my code on Android 13 and possibly older versions. After the permissions popup appears and I click 'Allow,' the subsequent code doesn't execute as expected. I've noticed that upon forcibly closing the app, I'm then able to trigger the requestLEScan function. Could you provide insights on how to address this situation? |
Beta Was this translation helpful? Give feedback.
Answered by
jchri853
Aug 24, 2023
Replies: 1 comment 2 replies
-
Hm I've never encountered this. What do you mean by "doesn't execute as expected"? Is there an error? Or just no results are found? Can you share the logs from Android Studio? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Found it! For others that may encounter this...
https://stackoverflow.com/questions/75333312/android-kotlin-registerforactivityresult-no-callback
Had an extra onRequestPermissionsResult in the code intercepting the permissions request
public void onRequestPermissionsResult(int requestCode, @nonnull String[] permissions, @nonnull int[] grantResults) {}