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

javascript - three.js lot of meshes optimization -

smartface.io - Proper way to change color scheme for whole application -

Email notification in google apps script -