Leanback AppLinks calling issue.

Open
#85 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

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

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.

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.

Dominant language
Kotlin
Stars
1.3k
Forks
400
Avg merge
9d 10h
Merged PRs (30d)
2

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from android/tv-samples

All issues in android/tv-samples

Similar issues

More Kotlin issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.