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

Notifications not working on some Android devices #673

Open
wijzijnweb opened this issue Jul 23, 2024 · 0 comments
Open

Notifications not working on some Android devices #673

wijzijnweb opened this issue Jul 23, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@wijzijnweb
Copy link

Describe the bug
On some android devices we are not receiving notifications.
Samsung not working, but OnePlus is working and iOS also working

Our code:

await BleClient.initialize({ androidNeverForLocation: true });
await BleClient.isEnabled();

device.value = await BleClient.requestDevice({
    namePrefix: 'MUGSHOTT_',
    services: [UART_SERVICE]
});

await BleClient.connect(device.value.deviceId, (deviceId: string) => onDisconnect(deviceId));
console.log('connected to device', device.value);

await BleClient.startNotifications(
    device.value.deviceId,
    UART_SERVICE,
    UART_TX_CHAR_UUID_CMD,
    (value: DataView) => {
         console.log(value)
})

On the devices that it won't work we receive a uuid of 00000000-0000-0000-0000-000000000000 on the requestDevice call.
Anyone has some clue why this happens?

It's for a custom build device, could be the device?

@wijzijnweb wijzijnweb added the bug Something isn't working label Jul 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant