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

Fixed session creation failing due to no background task #1317

Merged

Conversation

NicoleYarroch
Copy link
Contributor

@NicoleYarroch NicoleYarroch commented Jun 24, 2019

Fixes #1316

This PR is ready for review.

Risk

This PR makes no API changes.

Testing Plan

  • Smoke tests done with 13 apps

Summary

  1. If the app is not in the foreground when the SDLIAPTransport is created, a background task is now started.
  2. The background task is no longer destroyed when the transport is deallocated. If the app on the device is not open, this stopped reconnection attempts since code execution stops when the background task is destroyed.
  3. Removed unnecessary listening for EAAccessory connections in the SDLProxy class.

Changelog

Bug Fixes
  • Fixed new transport sessions not being created if a background task is not ongoing.

CLA

Removed unecessary registration for EAAcessory notifications
Background task should not be destroyed when transport is destroyed
Background task now started in init of SDLIAPTransport
@NicoleYarroch NicoleYarroch added the bug A defect in the library label Jun 24, 2019
@NicoleYarroch NicoleYarroch added this to the 6.3.0 milestone Jun 24, 2019
@NicoleYarroch NicoleYarroch self-assigned this Jun 24, 2019
@NicoleYarroch NicoleYarroch added this to In progress in v6.3 via automation Jun 24, 2019
@joeljfischer joeljfischer self-requested a review June 24, 2019 20:37
SmartDeviceLink/SDLIAPTransport.m Outdated Show resolved Hide resolved
v6.3 automation moved this from In progress to Review in progress Jun 24, 2019
Moved the background task from the iAPTransport class to the LifecycleManager class
Background task destroyed when the lifecycle manager is dealloced
SmartDeviceLink/SDLManager.m Outdated Show resolved Hide resolved
SmartDeviceLink/SDLLifecycleManager.m Outdated Show resolved Hide resolved
SmartDeviceLink/SDLLifecycleManager.m Outdated Show resolved Hide resolved
SmartDeviceLink/SDLLifecycleManager.m Outdated Show resolved Hide resolved
SmartDeviceLink/SDLLifecycleManager.m Outdated Show resolved Hide resolved
v6.3 automation moved this from Review in progress to Reviewer approved Jun 26, 2019
@joeljfischer joeljfischer merged commit b6a19fc into develop Jun 26, 2019
v6.3 automation moved this from Reviewer approved to Done Jun 26, 2019
@joeljfischer joeljfischer deleted the bugfix/issue_1316_background_task_session_creation_fails branch June 26, 2019 14:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A defect in the library
Projects
No open projects
v6.3
  
Done
Development

Successfully merging this pull request may close these issues.

None yet

2 participants