mobile application development company website

2022.03.24

AppMany benefits of sharing features

1.Meet user sharing needs,Users see some interesting things have the need to share with your friends

2.Import traffic for the website,After the user shares, if his friends click the reverse link to enter the website will complete the passage.

3.Homoked website brand communication,After users share,His friends saw their friends in this site,Add awareness or feeling of adding websites

4.Use the virus effect of social networking sites,After sharing,If the content is fun enough,Will be forwarded,Communicate from one user circle to another user circle,It also triggered discussions in the user circle,Available explosive propagation effect

existappHow to achieve sharing features

Call when using a love code brother mobile application development platform $phone.onekeyShare()Method and set a certain parameter to implement the functions of sharing

(mobile application development company website)iMAGThe sharing function is used under the bottom layer.ShareSDK,exist$phone.onekeyShare()Setting in the methodplatformparameter,Specify the specific platform displayed by the array specified pop-up menu,platformThe type of support has:Wechat(WeChat friend), WechatMoments(WeChat friends circle), WechatFavorite(WeChat collection), SinaWeibo(Sina Weibo), TencentWeibo(Tencent Weibo), QZone(QQspace), QQ(QQFriend), Renren(Renren network), Douban(Douban), YouDao(YouDao Cloud Note), Email(mail), Sms(Short message), Bluetooth(Bluetooth,onlyAndroid), AirPrint(printer,onlyiOS)。

mobile application development company website

Specific implementation code

Share on WeChat friends code

$phone.share({

platform: 'Wechat',

type: 'webpage',

title: 'iMAGMobile application development platform',

(mobile application development company website)

url: 'http://www.imagapp.com',

success: function() {

hint("Share success");

},

error: function(error) {

hint('Sharing failed');

},

cancel: function() {

hint('Share cancellation');

(mobile application development company website)

});

mobile application development company website

(mobile application development company website)Share to WeChat must specify sharing types,which istypeparameter,Otherwise, share the default text。typeSome of the following:text(text), image(picture), music(music), video(video), webpage(Web page), apps(application), file(document), emoji(expression)

share toQQCode

$phone.share({

platform: 'QQ',

}

});

mobile application development company website

Share needed in different platforms platformParameter settings,It will not be taken here.。

mobile application development company website

返回列表
更多新闻资讯