spotify/cocoalibspotify — Issue #37: - (void)sessionDidLosePlayToken: Not being called. 
Author: maxehmookau
Created: 2012-01-22 12:06:42+00:00
State: open

I may have this all wrong, but my understanding is that this method should be called when the same spotify account is played elsewhere. However, when I test this, the music stops playing in my app, but this method is not called.

- (void)sessionDidLosePlayToken:(SPSession *)aSession
{
[SPSession sharedSession].playing = NO;
[playPauseButton setImage:[UIImage imageNamed:@"play.png"] forState:UIControlStateNormal];
UIAlertView *loseTokenAlert = [[UIAlertView alloc] initWithTitle:@"Sorry" message:@"Playback was paused because this account was logged in elsewhere" delegate:nil cancelButtonTitle:@"OK" otherButtonTitles: nil];
[loseTokenAlert show];
}

I've set the playback delegate as self, but still no luck. Bug? Or me being stupid?

best,