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

Feature Request: State restoration #186

Closed
lukeswitz opened this issue Apr 6, 2020 · 3 comments
Closed

Feature Request: State restoration #186

lukeswitz opened this issue Apr 6, 2020 · 3 comments

Comments

@lukeswitz
Copy link
Contributor

What would the proper VC creation sequence be to achieve this? I can store the currentTrack data to parse as demonstrated in AppDelegate, but that schema doesn’t hold true for da Phish.

Cheers & thanks

@lukeswitz
Copy link
Contributor Author

closing, stale request

@farktronix
Copy link
Member

This is something I've wanted in Relisten for a while. I have a branch where I started working on things, but then I found out that the state restoration story from Apple has changed. It looks like we want to switch to using UIScene and NSUserActivity and the system should take care of most of this for us.

Switching to UIScene is also necessary for the latest CarPlay API (#193), so that's something we'll need to before the old API is completely removed.

My memory is a bit fuzzy about where I left the state restoration work, but I remember that untangling the setup of AGAudioPlayer was one of the big parts. There's probably a fork in that repository with some work in progress that would still apply in the new world of NSUserActivity

@lukeswitz
Copy link
Contributor Author

Thanks for the update on that, same thoughts. I've got the session to resume playing; Updating the UI to display the show is difficult but possible with what's there now I think. I'll enjoy giving it another try the hard way to learn the codebase a bit better. It took Apple Music until this year to get it right, so I'm not rushing it 😉

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

No branches or pull requests

2 participants