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

sdl_retryEstablishSession is not called after EA data session is closed #1113

Closed
t-yoshii opened this issue Oct 24, 2018 · 0 comments · Fixed by #1114
Closed

sdl_retryEstablishSession is not called after EA data session is closed #1113

t-yoshii opened this issue Oct 24, 2018 · 0 comments · Fixed by #1114

Comments

@t-yoshii
Copy link

Bug Report

We would like to enable connection retry logic in SDLIAPTransport when EA session is closed and the accessory is still connected.

One of our customer's head unit requires Bluetooth HFP connection with iPhone as a prerequisite to use connected services, including SDL. The head unit closes EA sessions between the phone when Bluetooth link is removed.

Now, when the head unit is connected to the phone with both Bluetooth and USB, it establishes EA sessions over USB. When Bluetooth link is disconnected, it closes EA sessions to shut down connected services. iOS library receives NSStreamEventEndEncountered, however since USB cable is still connected, it doesn't receive accessory disconnected event.

We would like to run sdl_retryEstablishSession in such case, so that once Bluetooth link is restored and EA session is established again, SDL gets available. Without the retries, the user is forced to remove USB cable once (to generate accessory disconnected event) then plug it again to enable SDL.

Reproduction Steps

Let HU close EA session w/o disconnection of accessory

Expected Behavior

Proxy starts reconnection

Observed Behavior

Proxy does not start reconnection

OS & Version Information
  • iOS Version: All
  • SDL iOS Version: 6.1.0
  • Testing Against: Our customer's HU
Test Case, Sample Code, and / or Example App

I will create PR

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

Successfully merging a pull request may close this issue.

1 participant