IOS 13 App crash with Bluetooth accessories connected

Hi Everyone,

I am having weird crash with my app: Whenever i have a bluetooth headset connected to my app and i open a viewcontroller where i am using AVPlayerViewController the app just crashes. Their are no logs in the debugger, the app just shuts off.


If i disconnect the bluetooth and go to the same page the app works fine, i am able to play the video go to fullscreen and perform all tasks without any issues. Also everything works fine on ios 12 as well.


I have already included both: Privacy - Bluetooth Peripheral Usage Description and Privacy - Bluetooth Always Usage Description.


Kindly help i am stuck on this issue since past 4 days.


Crash happening on IOS version: 13.3.1

Replies

I have got a similar issue with AVPlayerViewController

Code implementation as below:
Code Block objc
AVPlayerViewController * playerViewController = [[AVPlayerViewController alloc] init];
playerViewController.player = [AVPlayer playerWithURL:videoUrl];
[self presentViewController:playerViewController animated:YES completion:nil];


It works ok with video playing. but when I closed the player view, app crashed (Only happened when AirPods connected)

Looks like this only affects iOS 13, I couldn't reproduce this issue on iOS 12