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 }}},