Home > Net >  Runtime Bluetooth permission not showing in jetpack compose
Runtime Bluetooth permission not showing in jetpack compose

Time:09-17

I want to request runtime permission. But it only show one request. Can someone guide me how can I achieve this in jetpack compose. I am using compose 1.1.1 and using enter image description here

CodePudding user response:

Whatever you mentioned saying you wanted those permissions is literally covered in the dialog that shows up.

You say, "scan, pair, and data-transmission", the dialog says find (scan), connect to (pair and data-transmission), and find relative position of nearby devices (extra functionality). Try removing some of the permissions from the array, see how the dialog text changes. The user is not supposed to know the technicalities of the underlying OS, (admin, advertising). That's why it is abstracted into a simple text dialog, which states everything clearly to the user. Your code is fine,

  • Related