nativescript-community / nativescript-community/ble

Disconnect/Connect and Close app did not close bluetooth connection on iOS

Open
#126 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
202
Forks
79
PR merge metrics
No merged PRs in 30d

Description

Hi Guys ,

very happy with NativeScript and plugin . Great job!!

However, I notice one BIG issue . step to reproduce:

  1. connect to peripheral and send something and disconnect and connect again and disconnect
  2. close app
    3 open again and try to connect to the same peripheral and it can not connect any more .
    in connection function goes immediately to onDisconnected .

and last log console.log("----- delegate centralManager:didConnectPeripheral, let's discover service");

IT is happened only on iOS 12.1.2 and it works great on android and also I use BLE Scanner for test .
I have peripheral on raspberry pi ( python implementation)

Please help .
Thanks ,
Inessa

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the iOS 12.1.2 sequence of connecting, disconnecting, closing, reopening, and reconnecting to the same peripheral. Start at the connection function and the centralManager:didConnectPeripheral log mentioned in the report, then trace the immediate onDisconnected path. Done means the peripheral can reconnect after the app is reopened without regressing Android behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
ios, typescript
Domain
mobile-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.