how to request permission of nearby device on Android

Jae 6 Reputation points
2022-09-05T08:24:17+00:00

Bluetooth need permission nearby device on android 12 - API 31+
237754-permission.png
[create extending permissions for location, nearby device]

237696-mainactivity.png
[request extending permissions]

This picture is what i did for request permission
work with location permission but not work nearby device permission
never ask "do you want access to your nearby device?" when the debug, open app

reference : MAUI - permissions - Extending permissions

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,842 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,200 questions
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. Jae 6 Reputation points
    2022-09-06T07:08:40.113+00:00

    solution : need request nearby device permission with scan, connect

    1 person found this answer helpful.
    0 comments No comments

  2. Muhammed Şeker 76 Reputation points
    2022-09-05T10:31:13.72+00:00

    maybe if you are use web api .net core you can fix your problem


  3. Bruce (SqlWork.com) 54,866 Reputation points
    2022-09-05T17:40:13.413+00:00

    Did you make an android call that requires the permission? The dialog will not appear until the permission is required to perform an action.