Pad & Foldable Adaptation
On Pad and foldable devices, Tuya miniapps may display incorrectly or become hard to operate. Completing Pad and foldable adaptation ensures a good experience on these devices.
Info
Foldable devices decide whether to treat the screen as a Pad based on screen width. If you already see Pad adaptation behavior, the device is in the adapted state.
Version Requirements
- App baseline version: iOS / Android
>=7.7.0, HarmonyOS>=1.0.24
Adaptation Steps
1. Enable App tablet adaptation
In the Tuya Developer Platform → App Development → Feature Configuration → App Advanced Features, enable Adapt to Tablets.
2. Differentiate iOS and Android
3. Configure largeScreenDisplayMode
Set the largeScreenDisplayMode field in src/global.config.ts:
4. Finish adaptation
After completing the steps above, the miniapp can be used normally on Pad and foldable devices.