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

Notification data occasionally corrupted on iOS 16.5 #972

Open
jihen-ben-said opened this issue May 25, 2023 · 4 comments
Open

Notification data occasionally corrupted on iOS 16.5 #972

jihen-ben-said opened this issue May 25, 2023 · 4 comments
Labels

Comments

@jihen-ben-said
Copy link

In my Cordova application for iOS, I have encountered a peculiar issue. The application works flawlessly on devices such as the iPhone Xs running iOS 16.5. However, when testing it on the iPhone 13 with iOS 16.5, I noticed a problem. After initiating the startNotification process, the data received appears to be corrupted.

@peitschie peitschie added the ios label May 25, 2023
@peitschie
Copy link
Collaborator

Hi @jihen-ben-said

That certainly sounds surprising!

Are you able to share a good and bad notification example, just to see what kind of corruption you're dealing with? Is it a partial packet? Is it random bytes? Too long? Too short? Reversed?

Apple is usually pretty good about keeping their iOS behaviour consistent between hardware phones, but I have seen the occasional bug slip through.

@jihen-ben-said
Copy link
Author

ok
ko
Hi,
In the following screenshots, one contains successfully received data, and the other contains yellow, indicating that a brace is missing, so invalid data. This is a random problem, as sometimes other characters such as "a/z/f",}..." or a number are missing.

@peitschie
Copy link
Collaborator

@jihen-ben-said do you have any control over the peripheral here? Do you know if this is using a Bluetooth notification or an indication?

The reason this matters, is because notifications are not guaranteed delivery and allowed to be dropped or omitted by the BLE protocol (e.g., like a UDP packet). You could possibly check this by using nrf Connect to connect to device, and look whether the INDICATE flag is set for this characteristic, or just the NOTIFY flag.

This could explain why the data goes missing, and only goes missing sometimes.

@peitschie peitschie changed the title ios 16.5 support issue Notification data occasionally corrupted on iOS 16.5 Jun 4, 2023
@jihen-ben-said
Copy link
Author

Hi,
the notify characteristic have indicate true but the writing characteristic have indicate false

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants