-
Notifications
You must be signed in to change notification settings - Fork 33
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
How to get TCN from iOS device in background from Android #79
Comments
The last time we tested iOS -> Android, it was working. We will start a new testing round in a few days and update this issue. |
Have you tried Android <->iOS (in background)? |
Confirming that with the CoEpi apps, I'm able to see the iOS app's TCN while the iOS app is in the background:
Android version: Co-Epi/app-android@5b142d4 As for the internals (AFAIR!), while Android can connect to an iOS device advertising in the background, there was a bug in Android's BLE after doing many connections, because of which it was decided that the iOS device acts as a central and connects to the Android's peripheral to write its TCN instead. When iOS scans in the background it uses passive mode, which means that it can't request the service UUID from the peripheral if it's not provided directly in the advertisement data. But Android does send it in the advertisement data, so it's not a problem. |
Hi,
we are trying to use TCN protocol to track iOS and Android devices. iOS could retrieve TCN when advertising data from Android. But when iOS advertise the data, Android could not see any TCN data. Are we doing something wrong? We are using the implementation of Android and iOS in the repo.
In the doc it says
So Android opens a GATTServer and iOS can write TCN to it.
What happens if iOS is in the background? does it still try to write anything to the Android Gatt Server? I tried it but I didn't get anything? What would be the solution?
The text was updated successfully, but these errors were encountered: