How can I identify whether a applet forwards data to a group or to a friend ?, Applet forwarding

Source: Internet
Author: User

How can I identify whether a applet forwards data to a group or to a friend ?, Applet forwarding
How can I identify whether a applet forwards data to a group or to a friend?

OnShow: function () {wx. showShareMenu ({// here, we want to share group information, such as shareTickets withShareTicket: true})}, ondeskappmessage: function (res) {let that = this return {title: 'Are you a tiger, peacock, koala, Owl, or chameleon? ', Path:'/pages/index/Index', imageUrl: url, success: function (res) {// getSystemInfo is used to obtain the current device information and determine whether it is android or ios, for android, you also need to call wx. getaskinfo (), only when successful callback is the forwarding group, ios only needs to judge shareTickets wx. getSystemInfo ({success: function (d) {if (d. platform = 'android' & (res. shareTickets. length> 0) {wx. getaskinfo ({shareTicket: res. shareTickets, success: function () {wx. showToast ({title: "android sharing group", duration: 2000}) ;}, fail: function () {wx. showToast ({title: "failed to forward group", duration: 2000}) ;}} if (d. platform = 'ios '& (res. shareTickets. length> 0) {wx. showToast ({title: "ios sharing group", duration: 2000}) ;}, fail: function (res) {wx. showToast ({title: "failed forwarding", duration: 2000}) ;}}, fail: function (res) {// failed forwarding }}},

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.