Morten J
Morten J

Reputation: 914

Catch Spotify app events in the background

I'm observing changes on the Player model and console.logging the currently played song.

When I switch away from the app it works fine - but only for a minute or so.

Is there a way to keep the app alive?

Upvotes: 2

Views: 149

Answers (1)

pompa
pompa

Reputation: 688

Currently, the app object only lives on for 60 seconds after the context has been deselected.

Upvotes: 2

Related Questions