Skip to content

fix(mobile): don't crash on launch without Google Play Services - #14669

Open
DOGECOIN87 wants to merge 1 commit into
AudiusProject:mainfrom
DOGECOIN87:claude/nice-johnson-40lb1s
Open

DOGECOIN87 wants to merge 1 commit into
AudiusProject:mainfrom
DOGECOIN87:claude/nice-johnson-40lb1s

Conversation

@DOGECOIN87

Copy link
Copy Markdown

MainActivity eagerly called CastContext.getSharedInstance, which throws when Play Services is missing (GrapheneOS, other de-Googled devices), crashing the app before React Native loads. Only init Cast when Play Services is available, and swallow init failures. react-native-google-cast already no-ops its listeners and queries in that case.

Fixes #11357

Claude-Session: https://claude.ai/code/session_017Uy61cnmeZK6j3er5aYWv6

MainActivity eagerly called CastContext.getSharedInstance, which throws
when Play Services is missing (GrapheneOS, other de-Googled devices),
crashing the app before React Native loads. Only init Cast when Play
Services is available, and swallow init failures. react-native-google-cast
already no-ops its listeners and queries in that case.

Fixes AudiusProject#11357

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017Uy61cnmeZK6j3er5aYWv6
@changeset-bot

changeset-bot Bot commented Oct 13, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 68ccfb4

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Android app fails to launch without Google Play installed

2 participants