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:

but not working correctly on real device:

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
Post a Comment