Giter Site home page Giter Site logo

Problem in SDK 34 about simpleblescanner HOT 4 CLOSED

RobbyGit avatar RobbyGit commented on June 21, 2024
Problem in SDK 34

from simpleblescanner.

Comments (4)

lorenzofelletti avatar lorenzofelletti commented on June 21, 2024

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!

from simpleblescanner.

josephsr avatar josephsr commented on June 21, 2024

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

from simpleblescanner.

RobbyGit avatar RobbyGit commented on June 21, 2024

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..

from simpleblescanner.

lorenzofelletti avatar lorenzofelletti commented on June 21, 2024

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

from simpleblescanner.

Related Issues (3)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.