简体   繁体   中英

How to restrict android app for tablet/handset using expo?

I have separate APKs for the same app. For tablets and for handsets. Also I'm using expo in my project. Due to android documentation I should declare <supports-screens> in <manifest> like this for tablet support only:

<manifest ... >
    <supports-screens android:smallScreens="false"
                      android:normalScreens="false"
                      android:largeScreens="true"
                      android:xlargeScreens="true"/>
</manifest>

But it's not good solution, because eject is necessary. How can solve my problem without expo eject?

Unfortunately as of 3/31/2021 it does not look like this is supported by expo directly and would require ejecting.

It is tedious, but it is possible to manage supported devices and exclude tablets on the Google Play Console.

https://support.google.com/googleplay/android-developer/answer/7353455?hl=en#zippy=

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM