Skip to content

Commit

Permalink
[v2.0.0] Update iOS Google Cast SDK - minimum supported iOS is now 10.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Lindsay-Needs-Sleep committed Nov 7, 2020
1 parent 944bfb6 commit 919d358
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 6 deletions.
19 changes: 16 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ pod install

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

# Supports

**Android** 4.4+ (7.x highest confirmed) (may support lower, untested)
**iOS** 9.0+ (14.1 highest confirmed)
**Android** 4.4+ (may support lower, untested)
**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. :/)

## Quirks
* Android 4.4 (maybe 5.x and 6.x) are not able automatically rejoin/resume a chromecast session after an app restart.
Expand Down
9 changes: 9 additions & 0 deletions RELEASENOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,18 @@
-->
## Release Notes for cordova-plugin-chromecast

### 2.0.0 (2020-11-07)

* (ios) BREAKING - Update Google Cast SDK (iOS Sender -> 4.5.2)
* Google Cast SDK - [iOS sender 4.5.0+](https://developers.google.com/cast/docs/release-notes#september-14,-2020) has minimum iOS 10
* But, all tests on the plugin work fine for iOS 9.3.5, so it appears to work on iOS 9 anyways. :/
* But, since [email protected] no longer supports iOS 9+10 we will only be testing on iOS 11+.
* With the update, additional entries are required in `config.xml` for cast to work on iOs 14 (if built with Xcode 12+) (see README.md)

### 1.1.0 (2020-11-1)

* Update Google Cast SDKs (iOS -> 4.4.8, android -> 19.0.0)
* New SDK supports casting to Android TV (untested)
* (android) simulate mediaSessionId
* Add Audiobook chapter metadata
* (android) Fix queue bug: media returned with no items
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cordova-plugin-chromecast",
"version": "1.1.0",
"version": "2.0.0",
"scripts": {
"host-chrome-tests": "node tests/www/chrome/host-tests.js",
"style-js": "npx eslint --ignore-pattern tests/www/vendor www tests/www doc/example.js",
Expand Down
4 changes: 2 additions & 2 deletions plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<plugin xmlns="http://phonegap.com/ns/plugins/1.0"
xmlns:android="http://schemas.android.com/apk/res/android"
id="cordova-plugin-chromecast"
version="1.1.0">
version="2.0.0">
<engines>
<engine name="cordova" version=">=3.4.0" />
</engines>
Expand Down Expand Up @@ -56,7 +56,7 @@
<source url="https://cdn.cocoapods.org/"/>
</config>
<pods use-frameworks="true">
<pod name="google-cast-sdk" spec="~> 4.4.8" />
<pod name="google-cast-sdk" spec="~> 4.5.2" />
</pods>
</podspec>

Expand Down

0 comments on commit 919d358

Please sign in to comment.