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

How to publish Flutter apps made for Android TV on PlayStore #48109

Closed
pharshdev opened this issue Jan 3, 2020 · 8 comments
Closed

How to publish Flutter apps made for Android TV on PlayStore #48109

pharshdev opened this issue Jan 3, 2020 · 8 comments
Labels
c: new feature Nothing broken; request for a new capability d: stackoverflow Good question for Stack Overflow e: device-specific Only manifests on certain devices framework flutter/packages/flutter repository. See also f: labels. platform-android Android applications specifically tool Affects the "flutter" command-line tool. See also t: labels.

Comments

@pharshdev
Copy link

Note: I already know TV isn't supported by Flutter, but I highly feel this issue could be solved using a simple workaround which I'm not aware of yet.

So, I have developed an Android TV app using Flutter and it works as expected. The problem is in publishing the app to Playstore.

I have already made the changes to AndroidManifest as stated in Android docs for TV apps but still when the app is published on playstore, it says "This app is incompatible with all of your devices." including my AndroidTV and AndroidTV emulator.

Here's my AndroidManifest:
`

<uses-permission android:name="android.permission.INTERNET" /> 
<uses-permission android:name="android.permission.WAKE_LOCK" />

<uses-feature android:name="android.software.leanback"
    android:required="true" />
<uses-feature android:name="android.hardware.touchscreen"
          android:required="false" />


<!-- io.flutter.app.FlutterApplication is an android.app.Application that
     calls FlutterMain.startInitialization(this); in its onCreate method.
     In most cases you can leave this as-is, but you if you want to provide
     additional functionality it is fine to subclass or reimplement
     FlutterApplication and put your custom class here. -->
<application
    android:name="io.flutter.app.FlutterApplication"
    android:label="xyz "
    android:icon="@mipmap/ic_launcher"
    android:usesCleartextTraffic="true">
    <activity
        android:name=".MainActivity"
        android:launchMode="singleTop"
        android:theme="@style/LaunchTheme"
        android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
        android:hardwareAccelerated="true"
        android:windowSoftInputMode="adjustResize">
        <!-- This keeps the window background of the activity showing
             until Flutter renders its first frame. It can be removed if
             there is no splash screen (such as the default splash screen
             defined in @style/LaunchTheme). -->
        <meta-data
            android:name="io.flutter.app.android.SplashScreenUntilFirstFrame"
            android:value="true" />
        <intent-filter>
            <action android:name="android.intent.action.MAIN"/>
            <category android:name="android.intent.category.LAUNCHER"/>
            <category android:name="android.intent.category.LEANBACK_LAUNCHER"/>
        </intent-filter>
    </activity>
    <provider
        android:name="sk.fourq.otaupdate.OtaUpdateFileProvider"
        android:authorities="${applicationId}.ota_update_provider"
        android:exported="false"
        android:grantUriPermissions="true">
    <meta-data
        android:name="android.support.FILE_PROVIDER_PATHS"
        android:resource="@xml/filepaths" />
`

Any help appreciated, thanks!

@iapicca
Copy link
Contributor

iapicca commented Jan 3, 2020

#13749
#13633
#26947
https://stackoverflow.com/questions/47844928/how-to-let-flutter-apps-support-tv-device

@iapicca iapicca changed the title Make Flutter Android TV app compatible with PlayStore How to publish Flutter apps made for Android TV on PlayStore Jan 3, 2020
@iapicca iapicca added d: stackoverflow Good question for Stack Overflow documentation e: device-specific Only manifests on certain devices platform-android Android applications specifically labels Jan 3, 2020
@pharshdev
Copy link
Author

#13749
#13633
#26947
https://stackoverflow.com/questions/47844928/how-to-let-flutter-apps-support-tv-device

@iapicca Why link me to Focus and touch operation issues/solution?

I think I clearly mentioned that the app "works as expected" and the issue is on publishing the app to PlayStore where it says app is incompatible even though it works alright when sideloaded.

@iapicca iapicca added framework flutter/packages/flutter repository. See also f: labels. passed first triage and removed framework flutter/packages/flutter repository. See also f: labels. labels Jan 17, 2020
@kf6gpe kf6gpe added framework flutter/packages/flutter repository. See also f: labels. c: new feature Nothing broken; request for a new capability tool Affects the "flutter" command-line tool. See also t: labels. labels Jan 27, 2020
@kf6gpe
Copy link
Contributor

kf6gpe commented Jan 27, 2020

I don't know if we have a placeholder bug for Android TV support, but I'm imagining that to fully support @pharshdev we'd want some changes on both the framework and tooling side. The specific problem they're running into strikes me as tooling, but I don't think I understand the details.

@jmagman jmagman added this to Awaiting triage in Tools - Android review via automation Jan 28, 2020
@pharshdev
Copy link
Author

We have already successfully published the Flutter TV app on Playstore. We just needed to move <category android:name="android.intent.category.LEANBACK_LAUNCHER"/> above <category android:name="android.intent.category.LAUNCHER"/>. Thanks anyways.

Tools - Android review automation moved this from Awaiting triage to Engineer reviewed Jan 28, 2020
@khalilahmad0
Copy link

Hey! Can I have your email? I am building a tv app using flutter and I might need some help

@pbertsch
Copy link

@pharshdev could you provide the name of your Application ?

@pharshdev
Copy link
Author

@lock
Copy link

lock bot commented Apr 4, 2020

This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

@lock lock bot locked and limited conversation to collaborators Apr 4, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
c: new feature Nothing broken; request for a new capability d: stackoverflow Good question for Stack Overflow e: device-specific Only manifests on certain devices framework flutter/packages/flutter repository. See also f: labels. platform-android Android applications specifically tool Affects the "flutter" command-line tool. See also t: labels.
Projects
Tools - Android review
  
Engineer reviewed
Development

No branches or pull requests

5 participants