swift - Media Info displayed in simulator but doesn't display on real device -


i have tried code show media info:

import mediaplayer  let audioinfo = mpnowplayinginfocenter.defaultcenter() audioinfo.nowplayinginfo = [ mpmediaitempropertytitle: "miley_cyrus_", mpmediaitempropertyartist:"artistname"] 

this working fine on simulator shown image:

enter image description here

but not working correctly on real device:

enter image description here

there no media info displayed in real device displayed simulator. missing something?

i have found solution it

uiapplication.sharedapplication().beginreceivingremotecontrolevents() 

this working fine.

reference here.


Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -