# WMPF Technical principle
WMPF WeChat mini program hardware framework ( WeChat Mini-Program Framework ) The operating environment allows the hardware to run WeChat mini programs without the WeChat client. Android In the future, more platforms will be supported.
To run the Mini Program smoothly, you need to install two Apk , and make it run at the same time:
- WMPF Service Apk: the runtime environment of the Mini Program framework, also known as WMPF Framework, to Apk Way to run in the Android system, provided by the WeChat side
- WMPF Client Apk:Service The caller of the Launcher , in order to Apk The way it runs in Android is the container for Mini Programs.
Client Can be used as the "desktop" of the device, from which the user can launch Mini Programs or App When the user clicks on the Mini Program entry "on the desktop" (you can define the entry style yourself), the Client Will trigger. Service Adjust the corresponding Mini Program.
Recommended Hardware Configuration:
- Quad nucleus 2GHz CPU
- Memory 2GB RAM + 8GB ROM
- Android 7.1 And above
# WMPF Cooperative role
Complete WMPF Applications include WeChat Mini Program, WMPF Service 、WMPF Client The device operating system and related drivers are developed by Mini Program developers, hardware device developers and device software developers, respectively:
As shown, WMPF Access parties can be divided into three types:
# Hardware device developer
Hardware device developers generally refer to the research and development and manufacturers of equipment, providing downstream customers with reasonable hardware functions, operating systems ( Android ) and the hardware device that drives the software.
If you are a manufacturer of smart treadmills, you can do this by WMPF To combine the capabilities of Mini Programs to create unique capabilities that belong to your hardware devices, such as controlling the speed and slope of the treadmill with screen images to achieve fun running scenesOr complete a race challenge with a WeChat friend who is running on another smart treadmill.
If you specialize in R & D and production of hardware and are not familiar with Android Development, can look for other device software developers to help you complete WMPF Client Of development. However, the device must be registered with the software developer.
If your team has Android Development engineering experience, or try to develop your own WMPF Client 。
# Device Software Developer
WMPF Client also known as WMPF Launcher , in order to Apk The way it runs in Android is the container for Mini Programs. Developers need to complete it first.Detailed Access ProcessBefore referring to all the steps in the “Quick to get started” Partially completed WMPF Client Of development.
Developers need to Client To place the entry of the Mini Program in the icon Or a card ), the corresponding interface is invoked when the user clicks on the trigger to start WMPF Service To run the Mini Program. After the developer completes the relevant registration process, it can be found in theWeChat terminal cooperation platformBind to the Mini Program you need to use on the. Only bound Mini Program can pass through the WMPF Start.
If the developer Client Apk The entry to a Mini Program is removed on the icon Or card), the user will not be able to start the Mini ProgramTherefore, developers can allow or prevent users from launching a Mini Program by placing a portal.
With regard to special Android interfaces not defined in Mini Programs, some common hardware such asprinter、equipment SN code) You can directly make interface calls and complete communication with the Mini ProgramOther undefined external hardware, which is also available through the WMPF Call channelCommunication between Mini programs and hardware.
Generally, inWeChat terminal cooperation platformThe Mini Programs that have been bound on the WMPF On the equipment. But the mini program that has been released to use on WeChat has been carried out for the mobile phone screen. UI If your device screen size, ratio, resolution, orientation and mobile phone are different, the experience of running the Mini Program directly may be poor.You can adjust the display area of the Mini Program through a dedicated interface, or find a suitable Mini Program developer to develop a Mini Program that meets the requirements of the screen.
# Small Program Developer
Mini program developers can license the mini programs that have been published on WeChat to WMPF Hardware use, can also be tailored to the special needs of hardware, the development of special Mini Program. If Mini Program developers don't want to be WMPF Hardware use, available atWeChat Open PlatformClose related functions.
Based on WMPF Hardware to develop their own Mini Programs, developers can do this by calling the xxxxxx.xxx
Similar wmp.xxx
Interface, To complete the Mini Program and WMPF Client End of the communication, so as to achieve in the WMPF Below specific functions.
WMPF The hardware has some capabilities that are not supported by the phone, and there are a small number of interfaces that have matured on the phone. WMPF Not yet stable support, developers need to read WMPF Small Program Capability DxplainationUnderstand development specifications.
# Be careful
In understanding WMPF After the technical principle, it should also be clear WMPF Various concepts of the term. For detailed documentation visit:Noun explanation。