Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

IAP-BT to IAP-USB causes [Lifecycle] Failed to register the app #1079

Closed
SatbirTanda opened this issue Sep 19, 2018 · 6 comments
Closed

IAP-BT to IAP-USB causes [Lifecycle] Failed to register the app #1079

SatbirTanda opened this issue Sep 19, 2018 · 6 comments
Assignees
Labels
bug A defect in the library
Milestone

Comments

@SatbirTanda
Copy link
Contributor

SatbirTanda commented Sep 19, 2018

HelloSDLBT2USBConsole.log

Bug Report

Connecting device from IAP-BT to IAP-USB causes manager to stop registering to HU

Reproduction Steps

Ensure you have SDL enabled App on Phone.
Pair and connect iPhone over BT to Sync 3.2v2
App should register on SYNC
Now, connect the same device via USB to SYNC
(Internally, when the device connects over USB the device and SYNC setups another iAP session over USB. Once SYNC can determine that it is the same device which is connected over BT and USB, SYNC will proceed to disconnect the iAP session over BT)
Note the messages received on App (SDL disconnects, doesn't appear on head unit)

Expected Behavior

App should un-register since they were connected over BT and then immediately re-register over USB

Observed Behavior

App unregisters and then disconnects the manager completely over USB

OS & Version Information
  • iOS Version: iOS 11, iOS 12
  • SDL iOS Version: 6.0.1
  • Testing Against: SYNC 3.2v2
@joeljfischer
Copy link
Contributor

@SatbirTanda See if this PR (released in v6.1.2) fixes your issue #1114

@joeljfischer joeljfischer added the bug A defect in the library label Nov 29, 2018
@SatbirTanda
Copy link
Contributor Author

SatbirTanda commented Dec 7, 2018

Hey Joel - after testing with 6.1.2 it looks like the issue persists - I've attached a log in the original post

@NicoleYarroch NicoleYarroch self-assigned this Jan 16, 2019
@NicoleYarroch
Copy link
Contributor

NicoleYarroch commented Jan 17, 2019

I was able to reproduce on iOS 12.12 (iPhone XS Max) and SDL_iOS 6.1. I suspect the issue is occurring because the stream delegates for the EAAccessory are not being set to nil when the EAAccessory disconnects. I will create a PR to fix this issue.

@NicoleYarroch
Copy link
Contributor

@SatbirTanda Can you check PR 1150 and see if it fixes your issue?

@SatbirTanda
Copy link
Contributor Author

@NicoleYarroch Hey Nicole, After doing some testing (connecting iPhone 7 to SYNC 3.2v2 via BT and then USB several) I can confirm that the I see the app appearing successfully via the fix in that PR

@NicoleYarroch NicoleYarroch added this to the 6.2.0 milestone Mar 6, 2019
@NicoleYarroch
Copy link
Contributor

Fixed in PR #1150

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug A defect in the library
Projects
None yet
Development

No branches or pull requests

3 participants