android / android/tv-samples

Leanback AppLinks calling issue.

Open
#85 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Kotlin
Stars
1.3k
Forks
396
PR merge metrics
No merged PRs in 30d

Description

Hi Team,
I am trying to open one OTT App from my own Leanback app in Android TV. It works for deep linking. Where we have schema other than http/https. for example below code is working to open youtube video.
Intent intent = new Intent(Intent.ACTION_VIEW);
intent.setData(Uri.parse("vnd.youtube://72K1VhjoL98"));
startActivity(intent);
But when I am trying same code with AppLinks (schema with http/https along proper assetlinks.json hosted) it does not work.
I am trying it for Indian OTT app called Zee5. trying to open Zee5 from my Leanback App.
assetlinks url : https://www.zee5.com/.well-known/assetlinks.json
Note: Can't share the exact AppLinks due to data privacy.
App was crashing when there was not web browser installed in the Android TV box. After installing Puffin TV Browser, now it opens the url in browser but NOT opening the proper app (zee5 app.)
Intent intent = new Intent(Intent.ACTION_VIEW);
intent.setData(Uri.parse("https://xxx.xxx.bac/RlQq/?af_***")); //Masking due to data privacy.
startActivity(intent);
Same code is working fine in android Mobile app.
Please advice me how to open a third party TV app from my Leanback app using AppLinks.

Contributor guide

Open the contributing guide

Research direction

Start with the Android TV Leanback app's ACTION_VIEW entry point and the supplied Zee5 assetlinks.json URL. Compare the masked HTTPS link behavior with the working vnd.youtube URI and verify whether the target TV app declares matching App Links support. Done means documenting a reproducible cause and supported way to launch the third-party TV app, or confirming the limitation.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, java
Domain
mobile-dev
Issue type
Bug
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.