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

Use APNS to push now playing notifications to iOS clients #5

Open
jakebromberg opened this issue Jan 6, 2018 · 0 comments
Open

Use APNS to push now playing notifications to iOS clients #5

jakebromberg opened this issue Jan 6, 2018 · 0 comments

Comments

@jakebromberg
Copy link
Member

Apple Push Notification Service is what allows servers to push notifications to iOS (and other Apple platform) clients. Pushing silent background notifications could be a delivery mechanism to keep clients always up to date for the currently playing item.

As it is, a client will ping the server at regular intervals (30s) to check for changes. This introduces delays between the time a track has changed and an update on the client side. Additionally, this has a noticeable delay on app launch, which can take several seconds. Honing in on the definition of "app launch" a little more, we can also use the term to describe the home screen widget, which goes through a loading state before displaying the current playcut. Using APNS would eliminate perceived loading times for an instantaneous experience.

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

1 participant