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

Android13 remove from accept list #863

Open
morkovkin opened this issue Feb 25, 2025 · 0 comments
Open

Android13 remove from accept list #863

morkovkin opened this issue Feb 25, 2025 · 0 comments

Comments

@morkovkin
Copy link

morkovkin commented Feb 25, 2025

Hello everyone, I found a problem in my application.
My application is android launcher. When i startup

device.establishConnection(false).flatMapSingle { connection ->
                connection.readCharacteristic(BATTERY_SERVICE_CHARACTERISTIC).map {
                    it.getOrNull(0)?.toInt() ?: -1
                }
            }

For receiving a battery percent.

My question is about reconnection device after reboot. Using case like:

  1. Connect device (start use)
  2. Reboot android
  3. Wait 30-40 seconds after launcher start (on this moment i run code (for battery percent), i think android understand, that device is unavailable and close connection). Press any button in BLE device (for reconnection)
  4. Device doesn't reconnect (but i see it in bounded list)

i try to find solution in aosp but i don't sure (may be i need to wait device by autoConnect flag)
in aosp 7/9/11 it's work correctly.

I kindly ask you to help me with searching solution

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

1 participant