I'm using Android Studio to create a BLE Scanner but I can't seem to request for permissions on my phone. I'm using a Huawei HarmonyOS 2.0.0 phone and my coworker is using a Samsung Android 11 phone and it works fine on his phone.
Is there a specific dependency I need to implement or something in order for it to work on my phone? I saw somewhere that, for location permissions, we need to implement a separate library. (Here's the source). Would that be the same for BLE and Bluetooth?
These are my current dependencies:
dependencies {
implementation 'com.google.android.material:material:1.6.0'
implementation 'androidx.swiperefreshlayout:swiperefreshlayout:1.1.0'
implementation "androidx.core:core-splashscreen:1.0.0-alpha01"
implementation 'androidx.appcompat:appcompat:1.4.1'
implementation 'com.jjoe64:graphview:4.2.2'
testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
}