nativescript-community / nativescript-community/ble
Connectivity issue after a while
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 202
- Forks
- 79
- PR merge metrics
- No merged PRs in 30d
Description
Hello,
I have the following setup: a BLE device and a tablet with Android 10. The tablet is programmed to scan, connect, grab some data and disconnect from the BLE device in an infinite loop. Everything works fine for some time and then all of a sudden scanning shows 0 devices and the tablet is no longer able to connect to the device. If I restart the app everything works again. I don't see any crashes in the logs. Is there a way to restart or reset the BLE stack like an app restart would do?
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the repeated BLE scan, connect, data retrieval, and disconnect loop on Android 10, then inspect the app and BLE logs when scanning returns zero devices. Done means identifying a reproducible cause and a documented way to recover without restarting the app.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, typescript
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100