Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem in SDK 34 #2

Closed
RobbyGit opened this issue Jan 13, 2024 · 4 comments
Closed

Problem in SDK 34 #2

RobbyGit opened this issue Jan 13, 2024 · 4 comments

Comments

@RobbyGit
Copy link

Hi There

I had to remove in SDK34 for this to work. Im not sure why just yet

MainActivity.kt

Manifest.permission.BLUETOOTH_ADMIN

Thanks

Robby

@lorenzofelletti
Copy link
Owner

Hi Robby! Yes it could be, I developed on SDK 32 or 33, I don't remember exactly. Anyway, I will try to investigate a bit when I have some time.
Thank you for opening the issue!

@josephsr
Copy link

Hi There

I had to remove in SDK34 for this to work. Im not sure why just yet

MainActivity.kt

Manifest.permission.BLUETOOTH_ADMIN

Thanks

Robby

Tried this but still get the toast saying some permissions not granted

@RobbyGit
Copy link
Author

Ok This is in my Mainfest

<uses-permission android:name="android.permission.BLUETOOTH_SCAN" />
<uses-permission android:name="android.permission.BLUETOOTH_ADVERTISE" />
<uses-permission android:name="android.permission.BLUETOOTH_CONNECT" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />

and this is in my MainActivity

companion object {
    private const val TAG = "SAPP"
    private const val BLE_PERMISSION_REQUEST_CODE = 1
    private val blePermissions = arrayOf(
        Manifest.permission.BLUETOOTH_SCAN,
        Manifest.permission.ACCESS_COARSE_LOCATION,
        Manifest.permission.ACCESS_FINE_LOCATION,
    )
}

An it now works..

@lorenzofelletti
Copy link
Owner

I will close the issue, as it seems that you were able to solve it. Feel free to reopen it if needed!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants