The App-side Share module encapsulates the mainstream three-party sharing SDK in the market, and provides the unified call sharing function of JS API.

Project Type API
uni-app uni.share(OBJECT)uni.shareWithSystem(OBJECT)
5+App/Wap2App plus.share.*

In the uni-app project, the official packaged uni-share plugin is provided for developers to use.

Tip: The parameter configuration of the three-party sharing module can only take effect after submitting the cloud package. Please use the [custom base] when running and debugging the real machine (http://ask.dcloud.net.cn/article/35115)

The basic process of using the sharing function:

  • Apply to the three-party sharing platform for activation, some platforms (such as WeChat sharing) will get the appid after the application is successful
  • Configure the parameters of the application (such as appid, etc.) in HBuilderX, and submit the cloud package to generate custom base
  • Call the API in the App project for sharing operations

支持的三方分享平台:

On This Page