nativescript-community / nativescript-community/ble
peripheral doesn't contain any services (tested on android)
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 202
- Forks
- 79
- PR merge metrics
- No merged PRs in 30d
Description
I have old project which is running on nativescript 7.0.0 + nodejs 12.. and npm 6.13.4 and everything there works perfect.
Now i tried to to upgrade the nodejs to lastest version (16..) and npm is 8.1/8.2 with this version of node. After I create fresh project there are no services in peripheral object.
Steps to reproduce:
- Create new ns project - ns create testapp
- Enter folder - npm install
- tns plugin add @nativescript-community/ble
- tns debug android
I'm using the same code from READ.me file, just removing the filters (to display all devices). After choosing mine it connects and i have console.log(peripheral) - there are no services inside. Just UUID, name and all others NO optional params.
My device is working well with my old app, which uses the same plugin. I think they've made something in core and "services" are not getting populated. Can you please check?
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
Reproduce the issue with a fresh NativeScript project using the listed Node.js/npm versions, the @nativescript-community/ble plugin, and the README example without filters. Compare the connected peripheral output with the old working app and inspect where services should be populated; done means services are present after connection on Android.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, node.js, typescript
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100