In my music app i am allow background to work too.
And i noticed that in this order of actions the app stop playing music: In the app the user press the lock screen -> then he get msg in sms or whatsapp.... and then he slide the msg notification to open the msg app.
There is any method that i can get notification when the user made this actions?
I am using already:
- (void)applicationDidEnterBackground:(UIApplication *)application
and this notify me when the user press the lockscreen button.