WeChat Mini Program Introduction and Development Preparation
Why Mini Programs Exist
- Better Experience: Slow web loading and blank screens; native app experience is faster.
- Standards & Management: For WeChat, onboarding and management
Before mini programs were released, WeChat published an SDK called
JSDk
to open up some of the original WeChat capabilities: WeChat Pay, coupons. However, developers used web development languages to develop logic, bypassing some WeChat regulations. Mini Programs have their own description language.
What are Mini Programs?
Mini programs are applications that can be used without needing to download and install them. They realize the dream of having applications within easy reach.
Users can open an application simply by scanning a code or searching for it. This also embodies the concept of use-it-and-leave-it – users don’t need to worry about installing too many apps. Applications will be ubiquitous and available at any time, but without needing to install or uninstall.
Differences Between Mini Programs and Mobile Applications
No installation required, doesn’t occupy memory, easy to spread: QR code scanning, mini program cards, Search One Search (Sohu Search)
What Mini Programs Can Do
- Content Tools: Zhihu Hot Rankings, Weibo Hot Topics, Mobike Bikes, Today Headline, Tencent Maps, Tencent Translate
- Retail: Pinduoduo, JD.com Shopping, Mugujie, Daily Fresh, Xiaomi Mall, Watsons
- Games: Jump Rope, Happy Mahjong, Happy Dou Dizhu, Duoyue Live Streaming, YY Live Streaming
Course content is from 2018; some application vendors have already gone bankrupt now.
Development Preparation
- Register a Mini Program Account: Simply fill in the information normally, and click the activation link on the email.
- Information Registration
- Log into the Mini Program Management Backstage
- Complete Mini Program Information
- Bind Developer: For individual developers, use the WeChat account you’re logged in with as the administrator account; no additional binding is required.
Email has certain restrictions – it needs a new email address, but you can apply aliases for QQ emails, and the WeChat background will not verify them. After trying this, the name of the mini program is quite troublesome. As soon as it involves trademarks, it’s prone to audit failure.
You can select service categories and also add custom ones; a Mini Program can add five categories.
In Settings, you can view the Mini Program’s ID
information and enable message push notifications. Enabling message push allows you to use the Message Template function.
Developer Tools (as described by the author)
Normal download and installation, with no special notes – just a basic understanding. Simply enter in Guest Mode, and if you want to enable mobile debugging (i.e., view the mini-program development version on your phone), you need to log into the mini-program developer account, then click Settings, and switch to the specified mini-program’s ID
within Project Details.
Code Structure
- js: Interaction logic
- json: Data configuration
- wxml: UI elements
- wxss: UI styles