When posting to the Play Store it asks me to add Leanback intent

When posting to the Play Store it asks me to add Leanback intent. I made an Appp for TV and in order to be published in the Play Store it tells me what to include. Leanback attempt, if published for phones. How do I do this in my app?

This might article, written for Java programmers, might help https://stackoverflow.com/questions/51929882/google-play-warning-about-missing-leanback-intent .

Sorry, I don't know how to do it with App Inventor 2. It might be because you are setting the screen orientation to portrait or landscape. Evidently you cannot do that.

1 Like

Thanks, I am going to look at the link that you give me, I keep the orientation of the device in Horizontal therefore this should not be the problem

I don't know if this works but... i read the article that @SteveJG pointed to and it seems you have to use the sensor orientation option.

image

What if you try that?

1 Like

That should work.
Setting oriention to user should also work.
@Francisco Basically you have to detect whether device is phone/tablet or TV and set orientation according to that.