# To be adapted API summary
- The multi-terminal framework is based on the same technology as the Mini Program, most of the Mini Program JSAPI Can be used in multiple applications, but it does have some API Because the product carrier has become App, can no longer be supported, the developer needs to be on this part of the API Compatibility processing
- To make it easier for developers to API For compatibility processing, this article will need the developer to adapt the processing API Make a summary. If you have questions about the relevant content, you can contactLittle helperFeedback processing
For unsupported API, which can usually be divided into 3 The situation:
- Some are new. API Replace or replace the original. API Some adjustments have been made on the parameters: developers can use conditional compilation syntax for compatibility processing
- part API Is not yet supported: is the official plan to support or has been in development, when the line, developers can use conditional compilation syntax for compatible processing
- part API Cannot be found in App Medium support: This situation needs to be understood in advance by the developer, and other alternatives need to be sought or replaced in the App Does not provide relevant functions
# 1, the developer needs to be compatible with the interface
- The following functions require the use of new API Carry out
name | Function Dxplaination | Need to use new API |
---|---|---|
wx.login | Mini Program login | &bull About In App To achieve the login function, the platform provides a variety of programs, involving a number of API &bull Details can be viewedWeChat login instructions as well as[Mini Program login adaptation program explaination](https://dev.weixin.qq.com/docs/framework/dev/auth/loginCompatible .html) |
wx.showShareXXX | Forward(WeChat share related functions) | &bull in App To use the WeChat sharing function (sharing pictures, sharing text, sharing web pages, sharing mini programs, etc.), you need to use the new wx.miniapp.shareXXXX Interface implementation, details can be viewedForward |
- | App Pull up Mini Program | &bull in App Pull up the Mini Program needs to use a new interface, details can be viewedwx.miniapp.launchMiniProgram |
wx.requestPayment | WeChat Pay | &bull New interface required wx.miniapp.requestPayment &bull part iOS In the scene, you need to use Apple to buy IAP(In-App Purchase), details can be viewed wx.miniapp.IAP |
wx.openCustomerServiceChat | Open WeChat customer service | &bull New interface required wx.miniapp.openCustomerServiceChat |
wx.requestSubscribeMessage | Subscribe Message | &bull The Mini Program subscribes to messages capability in the App Cannot be used in &bull App Support one-time subscription message interface wx.miniapp.requestSubscribeMessage &bull App The message push function is in development, and will support |
wx.getSystemInfo | Access to system information | &bull The return parameters of the interface have been adjusted, details can be viewed[](https://dev.weixin.qq.com/docs/framework/dev/jsapi/diffapi/getSystemInfo .html) &bull wx.getSystemInfoSync The parameter return handles the same wx.getSystemInfo |
wx.getAppBaseInfo | Obtain App Basic information | &bull The return parameters of the interface have been adjusted, details can be viewed[wx.getAppBaseInfo ](https://dev.weixin.qq.com/docs/framework/dev/jsapi/diffapi/getAppBaseInfo .html) |
wx.getLaunchOptionsSync | Get the parameters at the start of this application | &bull The return parameters of the interface have been adjusted, details can be viewedwx.getLaunchOptionsSync |
wx.getEnterOptionsSync | Get the parameters when the app starts | &bull The return parameters of the interface have been adjusted, details can be viewedwx.getEnterOptionsSync |
wx.getMenuButtonBoundingClientRect | Get the layout location information for the menu button (the capsule button in the upper right corner) | &bull The capsule logo is no longer presented in the app, and the interface still returns the relevant coordinate information to facilitate multi-terminal compatibility for developers. &bull If the current return of the interface does not meet the requirement, contact theLittle helperGive feedback |
wx.getBackgroundAudioManager | Get a globally unique background audio manager | &bull The interface is provided in the Mini Program with the same name API Extended, details can be viewed.wx.getBackgroundAudioManager |
# II. Interfaces not yet supported
- Contains interfaces that are not yet planned for support and are already in development, details can be found API a general overview