안드로이드 버전 6.0 마시멜로우(API 23)부터 와이파이나 블루투스 스캔으로 근처의 기기를 탐색하기 위해서는 앱에 ACCESS_FINE_LOCATION 또는 ACCESS_COARSE_LOCATION 권한이 있어야한다.


안드로이드 공식


https://developer.android.com/about/versions/marshmallow/android-6.0-changes.html#behavior-hardware-id



사용자의 버전에 따라 권한 부여


https://stackoverflow.com/questions/33052811/since-marshmallow-update-bluetooth-discovery-using-bluetoothadapter-getdefaultad

블로그 이미지

NCookie

,