With the release of iOS 13, we want to let you know about an important change. This change is not related to JW Player's SDK specifically, but we do want to make sure all of our customers aware of any third-party updates.
Apple has introduced stricter permissions requirements in iOS 13 that enforce a tighter control for Bluetooth access.
In order to prevent failed casting sessions and application crashes, we encourage all customers to make a small change to their iOS applications. This change does not require development changes or SDK updates. But, it does require resubmitting your app to the App Store.
After making the following change to your app, your app users will be required to provide Bluetooth access permissions. If a user declines to give permission to Bluetooth access, the casting button will disappear and casting functionality is disabled. Playback on the device is unchanged.
Use the following steps to implement this change:
- In Xcode, open Info.plist for your app.
- Create a Key named NSBluetoothAlwaysUsageDescription. When added, this appears as Privacy - Bluetooth Always Usage Description.
- From the Type options, select String.
- Set a message noting that Bluetooth is needed to enable Google Cast as the Value.
You can also update the source code of Info.plist:
<key>NSBluetoothAlwaysUsageDescription</key> <string>Bluetooth is needed to enable Google Cast.</string>
Updated 8 days ago