Skip to content

Add support for Android TV platform in permission handler#6667

Open
bl1nch wants to merge 3 commits into
flet-dev:flet-0.86from
bl1nch:permission-handler
Open

Add support for Android TV platform in permission handler#6667
bl1nch wants to merge 3 commits into
flet-dev:flet-0.86from
bl1nch:permission-handler

Conversation

@bl1nch

@bl1nch bl1nch commented Jul 10, 2026

Copy link
Copy Markdown
Contributor

Description

The underlying flutter_permission_handler package does not officially list Android TV as a supported platform. However, in practice it works reliably on many Android TV builds, since Android TV is fundamentally a variant of the Android platform and shares the same permission APIs.
Currently, Flet's PermissionHandler blocks this platform outright via a hardcoded check. This prevents developers from using the control on Android TV even when it works fine for their use case.

Test code

# Minimal test/reproduction code for reviewers, if applicable.

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

Checklist

  • I signed the CLA.
  • I have performed a self-review of my own code.
  • My code follows the style guidelines of this project.
  • I have commented my code, particularly in hard-to-understand areas.
  • My changes generate no new warnings.
  • New and existing tests pass locally with my changes.
  • I have made corresponding documentation changes, if applicable.
  • I have added changelog entries for user-facing changes, if applicable.
  • I have updated release guide pages and website/sidebars.yml for breaking changes, removals, and deprecations, if applicable.

Screenshots

Additional details

Summary by Sourcery

Bug Fixes:

  • Remove the hardcoded platform restriction that prevented using the permission handler on Android TV.

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey - I've reviewed your changes and they look great!


Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

@ndonkoHenri

Copy link
Copy Markdown
Contributor

Can you please update the changelog of that extension?

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

Successfully merging this pull request may close these issues.

2 participants