May 18, 2021 WeChat Mini Program Development Document
Support starts with base library 2.11.3
This feature is beta and is currently only available on Android platforms
You can share the small program page to your circle of friends. For content-based page sharing, not for page sharing with more interaction.
By default, small program pages cannot be shared to a circle of friends, and developers need to proactively set "share to a circle of friends". The page allows to be shared with a circle of friends, subject to two criteria:
Pages that meet both of these criteria can be shared with a circle of friends.
The user opens the shared small program page in the circle of friends, does not really open the small program, but enters a "small program single page mode" page, "single page mode" has the following characteristics:
The page adaptation can be performed by judging the method equal to 1154.In addition, in single page mode, the intersection of the top navigation bar and the page can be set, and the specific reference navigationBarFit Configuration.
It is also important to note that in single page mode, the SAFEAREA returned by the wx.getsysteminfo interface is the entire screen space.
The small program "single page mode" is suitable for pure content display scenarios, and the interaction and interface capability can be achieved, so there is a limit:
For some components or interfaces that generate interaction, when called after clicking, the toast prompts "Go to the small program to use the full service." For a good user experience, be aware of the interface capabilities that are appropriate for single-page mode, and do not heavily use disabled interfaces or components.
Disable the list of capabilities:
Classification | Function points |
---|---|
Component | button open-type 、 camera 、 editor 、 form 、 functional-page-navigator 、 live-pusher 、 navigator 、 navigation-bar 、 official-account 、 open-data 、 web-view |
Routing | wx.redirectTo 、 wx.reLaunch 、 wx.navigateTo 、 wx.switchTab 、 wx.navigateBack |
Interface | Navigation bar, Tab Bar |
Internet | mDNS, UDP communication |
The data cache | Periodic updates |
Media | VoIP 、 wx.chooseMedia 、 wx.chooseImage 、 wx.saveImageToPhotosAlbum 、 wx.chooseVideo 、 wx.saveVideoToPhotosAlbum 、 wx.getVideoInfo 、 wx.compressVideo |
Position | wx.openLocation 、 wx.chooseLocation 、 wx.startLocationUpdateBackground 、 wx.startLocationUpdate |
Forward | wx.getShareInfo 、 wx.showShareMenu 、 wx.hideShareMenu 、 wx.updateShareMenu |
File | wx.openDocument |
Open interface | Login, small program jump, user information, payment, authorization, settings, shipping address, voucher, invoice, biometric, WeChat movement, WeChat red envelope |
Equipment | Bluetooth, iBeacon, Wi-Fi, NFC, Contacts, Clipboard, Phone, Broom |
Advertising | ad 、 wx.createRewardedVideoAd 、 wx.createInterstitialAd |
Sharing the ability of the circle of friends is to meet the sharing demands of pure content scenes, abuse in marketing, induction and other behavior will be combated.