I made an app that works on both mobile and TVs. It works fine when in debug or when i download its apk to the TV but when it was uploaded to play store it says that it's not compatible with TV, I mailed the support and they said it doesn't support TV though I did everything in the docs
Here is my manifests:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.sedra.universeiptv">
<uses-feature android:name="android.hardware.touchscreen"
android:required="false" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.WAKE_LOCK" />
<uses-feature
android:name="android.software.leanback"
android:required="false" />
<application
android:allowBackup="true"
android:banner="@drawable/banner"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="false"
android:theme="@style/Theme.UniverseIPTV"
android:usesCleartextTraffic="true">
<activity android:name=".view.activity.tvactivity.SeriesDetailsForTv"/>
<activity android:name=".view.activity.tvactivity.TvLiveOnTvActivity" />
<service
android:name=".FirebaseMS"
android:exported="false">
<intent-filter>
<action android:name="com.google.firebase.MESSAGING_EVENT" />
</intent-filter>
</service>
<activity
android:name=".view.activity.MainActivity"
android:configChanges="orientation"
android:screenOrientation="portrait">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:name=".view.activity.SeriesDetailsActivity" />
<activity android:name=".view.activity.MovieDetailsActivity" />
<activity
android:name=".view.activity.PlayVideoActivity"
android:configChanges="orientation|keyboard|keyboardHidden|navigation"
android:screenOrientation="landscape" />
<activity
android:name=".view.activity.tvactivity.TvMainActivity"
android:configChanges="orientation"
android:banner="@drawable/banner"
android:screenOrientation="landscape">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LEANBACK_LAUNCHER" />
</intent-filter>
</activity>
</application>
</manifest>