Post

Replies

Boosts

Views

Activity

Reply to [iOS 14] My App's AVPlayer has been paused when did enter background
Removing the player on UIApplication.willResignActiveNotification partially fixes the issue     @objc private func onAppWillResignActive() {         playerLayer.player = nil     } This will work almost as in iOS 13 when the app is moved to background, BUT if user locks the device with the app in foreground, the playback will stop. The only workaround i found for the lock screen issue is to force the player to play shortly after moving to background:     @objc private func onAppDidEnterBackground() {         playerLayer.player = nil         if #available(iOS 14, *), player.isPlaying {             DispatchQueue.main.asyncAfter(deadline: .now() + 0.2) {                 if !self.player.isPlaying { self.player.play() }             }         }     } However, there are some problems with this approach: 1) There will be a small gap in the playback when moved to background 2) If the media file is not available locally but it's loaded from a remote URL, this approach mai fail, depending on the current buffer state. 3) ...
Sep ’20
Reply to Kids App - Analytics tools
Hey @marciobom, Did Apple mentioned “the use of App Tracking Transparency framework” as the rejection reason? We got that also, but we can’t find any refs to ATT framework in our app (including 3rd party SDK’s). we asked Apple to provide more info but didn’t get any. Have you managed to pass the review? Thanks
Mar ’21