I had developed my app for iOS 9+ devices few months back and at that time MPNowPlayingInfoCenter was working as expected. But recently I updated my XCode also to latest 9.3 and due to some Pods library being updated I had to change the Deployment Target to 10.0. Since then the MPNowPlayingInfoCenter stops working and never shows up on lock screen on any Simulator devices.
MPNowPlayingInfoCenter.default().nowPlayingInfo = [
MPMediaItemPropertyTitle: self.playerItem.title.br2Sp.stripTags,
MPMediaItemPropertyArtist: self.playerItem.artist.br2Sp.stripTags,
MPNowPlayingInfoPropertyPlaybackRate: player.rate
]
Any idea what has changed since then?
P.S. By stops working I mean that my above code no longer displays the Now Playing info on lock screen.
After searching a lot, I finally came to know that iOS Simulator v11.3 does not have support yet for Control Panel and it shows a frosted screen without any controls. I have downloaded iOS Simulator v10.3.1 and its now showing up.
Related
I am updating my code Xcode 9.2 to latest Xcode 10. all things working properly but splash screen logo image not shown when apps running . is there any solution for it.
I got solution for my problem by restarting testing device.
See previous answers here: iOS Keeping old launch screen and app icon after update
You don't specify in the question if you're running on a real device or simulator, but if simulator make sure you do 'Erase All Content And Settings' from the 'Hardware' menu. The simulator is not an emulator and doesn't always behave the same as a real device.
I have an app that works completely fine on several different iPhones(5s,6,6s) with different iOS versions but doesn't play sound on simulator(simulator plays sound on safari but not in app).I don't think i have any coding issue such an initialize or such things because it works fine in physical device.
please help me out.
I've used AVAudioPlayer.
I've checked out all of the answers in the following link but it didn't work
for me. Sound not working in iPhone Simulator?
I use Xcode Version 9.4.1 and iOS 11.4 on simulator
I have an app and the Default.png images always comes up on some devices when coming back from background.
It would seem to be happening for apps that were created after I upgraded to XCode 4.6.1.
I tried the solution suggested here:
IOS Default.png show every time when my app enter foreground from background
and no go.
If I run the app on iPhone 5 with 6.1.4, the Default only comes up once when the app is initially launched. After that, it never comes up.
If I run the app on my iPad 3 with 6.1.3, the Default always comes up after coming back from background.
My QA lead sees the issue on her iPad 3 with 6.1.4.
Did they change something in the XCode project settings?
Genrally Your App Enter in to Foreground ,IOS 5 simulator displays a Lunch Image where IOS 4.3 simulator take a screen shot of the App when it was entering in to background , but testing on real device its work perfect.
I found the answer by chance here:
Prevent Splash Screen from showing after returning from background
Turns out I had set UIStatusBarStyle in my info.plist and that caused the issue on iPad 3.
I am in urgent need of the the geeks present on this forum regarding the iOS SDK questions.I have an app in which i hav to play multiple sounds simultaneously.I started with AVAudioplayer class but i realise that it was getting hung on iPhone 3gs and older iOS versions so i moved to AudioServicesCreateSystemSoundID((CFURLRef)afUrl,&soundID) from the tips of one of my friend.Now the app plays sound seamlessly on both iPhone and iPad .I have an iPhone 4S with iOS 5.1.1 and i have updated the Ipad 2 from iOS 5.1.1 to latest iOS 6.0 stable.Now the problem is that the app runs fine on iPhone but on iPad a strange issue comeing up.On iPad sound is played but the volume does not change with Physical volume change button effect.I have build the app using Xcode 4.5 GM with iOS 6.0 and have set the deployment target to iOS 5.0 .
Please help me out as i am getting crazy on this strange behavior on Ipad only ..I hope i would definitely get the perfect solution here from you guys !!
Thanks in Advance !!!!
Events like location changes launch concerning app into background if it is not launched yet. But I don't see how to simulate such scenarios on simulator. Is it possible? How?
It's not possible with iOS Simulator found in current public SDK.
I know this is borderline breaking NDA, but you should take a look at Hardware menu item of new iOS Simulator that comes with Xcode 4.2 beta.