renative icon indicating copy to clipboard operation
renative copied to clipboard

React-native-google-cast not working

Open fabio-carvalho88 opened this issue 2 years ago • 3 comments

Hello! I'm currently setting up react-native-google-cast package in my project, for both Android and iOS. I think I have everything I need to complete the Android Installation & Setup steps, however I'm stuck on this:

  const client = useRemoteMediaClient();

  if (client) {
    client.loadMedia({
      data
    });
  }

image

I'm using renative: 0.31.1 and react-native: 0.61.2 to develop apps for both Android and iOS. Dependencies were inserted in android/app/build.gradle accordingly to the Docs

Below you can see examples of how I'm editing the AndroidManifest, MainActivity.

image

image

Am I overlooking something? Thanks in advance!

fabio-carvalho88 avatar Aug 25 '22 09:08 fabio-carvalho88

@kasinskas any ideas on this?

mihaiblaga89 avatar Sep 22 '22 07:09 mihaiblaga89

@mihaiblaga89 seems like it was the issue with Google Play Services not being enabled on the emulator https://github.com/react-native-google-cast/react-native-google-cast/issues/448, so can be closed most likely

kasinskas avatar Sep 22 '22 07:09 kasinskas

hello @mihaiblaga89 @kasinskas, I had to ensure that my Android emulator had the Play Store and Google Play Services enabled after properly installing and configuring the package according to the docs.

Everything went smoothly, regarding the iOS emulator.

fabio-carvalho88 avatar Sep 23 '22 21:09 fabio-carvalho88

Closing as solved

pauliusguzas avatar Oct 17 '23 13:10 pauliusguzas