Picture in Picture does not start by default when you minimise your app in case of AVPlayerLayer

Adopting Picture in Picture in a Custom Player
https://developer.apple.com/documentation/avkit/adopting_picture_in_picture_in_a_custom_player
I have implemented PIP by following this link when I tap Pip button it works fine but when I am playing any video If I minimise app Picture in Picture does not start .In my case I have used AVPlayerLayer and I have set AVAudiosession category as playback .I am on iOS 14 beta 4

Replies

@Shaktipraksh

Have you found a solution to this over the last 2 years? I'm facing the same issue and have no idea how to deal with it