Skip to content

Commit b198e5c

Browse files
(ios) Update iOS Google Cast SDK - minimum supported iOS is now 10.0
1 parent 7aac33d commit b198e5c

File tree

2 files changed

+17
-4
lines changed

2 files changed

+17
-4
lines changed

README.md

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ pod install
1616

1717
### Additional iOS Installation Instructions
1818
To **distribute** an iOS app with this plugin you must add usage descriptions to your project's `config.xml`.
19-
These strings will be used when asking the user for permission to use the microphone and bluetooth.
19+
The "*Description" key strings will be used when asking the user for permission to use the microphone/bluetooth/local network.
2020
```xml
2121
<platform name="ios">
2222
<!-- ios 6-13 (deprecated) -->
@@ -30,13 +30,26 @@ These strings will be used when asking the user for permission to use the microp
3030
<config-file parent="NSMicrophoneUsageDescription" target="*-Info.plist" comment="cordova-plugin-chromecast">
3131
<string>The microphone is required to pair with nearby Chromecast devices with guest mode enabled.</string>
3232
</config-file>
33+
<!-- ios 14+ -->
34+
<config-file parent="NSLocalNetworkUsageDescription" target="*-Info.plist" comment="cordova-plugin-chromecast">
35+
<string>The local network permission is required to discover Cast-enabled devices on your WiFi network.</string>
36+
</config-file>
37+
<config-file parent="NSBonjourServices" target="*-Info.plist" comment="cordova-plugin-chromecast">
38+
<array>
39+
<string>_googlecast._tcp</string>
40+
<!-- The default receiver ID -->
41+
<string>_CC1AD845._googlecast._tcp</string>
42+
<!-- IF YOU USE A CUSTOM RECEIVER, replace the line above, and put your ID instead of "[YourCustomRecieverID]" -->
43+
<!-- <string>_[YourCustomRecieverID]._googlecast._tcp</string> -->
44+
</array>
45+
</config-file>
3346
</platform>
3447
```
3548

3649
# Supports
3750

38-
**Android** 4.4+ (7.x highest confirmed) (may support lower, untested)
39-
**iOS** 9.0+ (14.1 highest confirmed)
51+
**Android** 4.4+ (may support lower, untested)
52+
**iOS** 10.0+ (The [Google Cast iOS Sender SDK 4.5.0](https://developers.google.com/cast/docs/release-notes#september-14,-2020) says iOS 10+ but all tests on the plugin work fine for iOS 9.3.5, so it appears to work on iOs 9 anyways. :/)
4053

4154
## Quirks
4255
* Android 4.4 (maybe 5.x and 6.x) are not able automatically rejoin/resume a chromecast session after an app restart.

plugin.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
<source url="https://cdn.cocoapods.org/"/>
5757
</config>
5858
<pods use-frameworks="true">
59-
<pod name="google-cast-sdk" spec="~> 4.4.8" />
59+
<pod name="google-cast-sdk" spec="~> 4.5.2" />
6060
</pods>
6161
</podspec>
6262

0 commit comments

Comments
 (0)