Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Get YouTube App" #26

Open
Isaackingston opened this issue Sep 8, 2022 · 1 comment
Open

"Get YouTube App" #26

Isaackingston opened this issue Sep 8, 2022 · 1 comment

Comments

@Isaackingston
Copy link

When trying to start youtube player activity the an alert with the title "Get YouTube app" and the message as "This app won't run without the YouTube App, which is missing from your device". The alert looks like the one below.
YouTube error

@Isaackingston
Copy link
Author

Isaackingston commented Sep 8, 2022

This happens because of the privacy change in Android 11. The package visibility in Android 11 has to be explicitly requested.
More information can be found in this stackoverflow link
https://developer.android.com/about/versions/11/privacy/package-visibility

You can solve this by adding the following code to you AndroidManifest.xml inside the manifest element but outside the application element.

<manifest
       <application
            android:allowBackup="true"
            android:icon="@mipmap/ic_launcher"
            android:label="@string/app_name"
            android:supportsRtl="true"
            android:theme="@style/AppTheme">

           </application>

          <queries>

              <intent>

                  <action android:name="com.google.android.youtube.api.service.START"/>

              </intent>
          
          </queries>

    </manifest>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant