nativescript-community / nativescript-community/ble

startScanning won't find any devices when app is in background

Open
#198 3 comments 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

I have a worker service that continues scanning for bluetooth devices when the app is no longer in foreground. I still get console logs from the worker when I put the app in background but the startScanning() method no longer returns bluetooth devices. (they are returned fine when the app is in foreground)

I'm assuming this is something handled at the OS level that needs to be configured or something like in the Info.plist keys maybe?

Thanks!

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

Start with the startScanning() entry point and the iOS background configuration mentioned in the issue, including the possible Info.plist keys. No specific source file or test is identified; done means determining whether background scanning is supported and documenting or correcting the required configuration so devices are returned while the app is backgrounded.

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
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.