This guide hopes to help testers quickly understand Mini Programs, understand the related concepts of Mini Programs, and locate and troubleshoot problems.
More detailed mini-program documentation can be jumped to: Smart Mini-Program Documentation
The Smart MiniApp can be understood as Tuya providing a development framework for developers. Developers can develop services with native app experience according to the prescribed grammar and framework rules, and run them into various apps in Tuya ecosystem.
The advantages of mini programs are:
The developer platform is a platform for managing small programs. On this platform, you can perform version management, code scanning experience, permission management, and multi-language configuration for small programs.
Before entering the testing process, the developer must have created the corresponding Miniapp project on the platform, and the tester can ask the developer to add himself in the developer platform - member management, and share the existing project with him.
**The developer platform can also generate an experience QR code, and testers scan the experience QR code through the App to evoke the Miniapp. **
More detailed operating instructions for the developer platform: Smart Mini Program Documentation - Developer Platform
Compared with the normal testing process, the difference between Miniapp testing is that the app scans the experience QR code generated by the developer platform to evoke and enter the Miniapp page.
Refer to the next section to experience the process of using the QR code.
The tester first needs to find the client personnel to get the App installation package to be tested. The client personnel need to ensure that the App integrates the Miniapp capabilities, and the basic library version and the Kit package version are compatible with the current Miniapp to be scanned.
Developers are required to add tester accounts in Developer Platform - Member Management, so that testers can find Mini Program items under their account list.
At the same time, it is also necessary to let the developer configure the "Traffic Management" correctly, and add the tester account to the "Whitelist".
The specific process reference document: [Developer Platform - Experience QR Code](https://developer.tuya.com/miniapp/guide/platform#%E4%BD%93%E9%AA%8C%E4%BA %8C%E7%BB%B4%E7%A0%81).
The basic library is responsible for the loading container of the Miniapp framework, and provides standard components and some JS API interfaces required by the Miniapp framework.
The client divides the provided device capabilities and basic business capabilities into different Kit packages, and provides them to Mini Programs, RN, H5, etc. through plug-ins.
Detailed description of TTT capabilities.
Different versions of client apps will be bound with some basic library versions. When the app invokes the Miniapp, it will compare the basic library version bound by the app with the basic library version of the Miniapp. If it is backward compatible, the Miniapp can be displayed, otherwise an error will be reported.
E.g:
The uploaded Mini Program base library version is 2.0.22.
The client app may integrate different types and versions of Kit packages, so when the app invokes the Miniapp, it will also check whether the app is compatible with the kit package required by the Miniapp.
E.g:
The uploaded Miniapp requires four Kit packages:
Before going online for approval, you need to correctly configure the domain name and request path.
For specific rules and configuration methods, please refer to: Online Audit