加载中 ...
首页 > 新闻资讯 > 经验心得 正文

小程序 Get new ways of user information!

2019-07-13 02:14:37 来源:沈阳小程序开发 作者:沈阳软件开发

To enhance the user experience, 小程序 opens two new capabilities again!

获取用户信息

The developer needs to place a button on the 小程序 page, and the user can click on the button to obtain the user's avatar and other information. It can improve the user's authorization success rate and support users to click and re-authorize multiple times.

Previously, when we opened any 小程序 for the first time, we would jump out of the authorization interface, click OK 小程序 to get the user's 微信 avatar, nickname and other information.

1240

Although the deauthorization can continue to use 小程序, but for example, the e-commerce 小程序, the user can not place an order without the authorization. At this time, 小程序 will re-exit the prompt "Do you want to open the setting page re-authorization", and only click the setting to re-authorize.

Some APP软件开发

ad.jpg

The user just touched 小程序. If I didn't see the interface, I was asked if it was authorized by 微信. The subconscious would think about whether it is safe or not, and then I would like to refuse. The user re-authorizes from the de-authorization and then jumps to another interface. Although there are only two simple steps, it is inevitable that the user experience is unfavorable.1240

Now, when users open 小程序 for the first time, they don't need to consider the issue of authorization first. If you feel that you need authorization after the experience, there is a button clickable authorization directly in 小程序. It feels like this is the correct posture to open 小程序.

See: button component (getUserInfo)

获取用户****UnionID

xx 应用程序,公共号码,相同主题的小程序在相同的微信开放平台下。如果用户已经注意到公共号码,或者已经在应用程序或公共号码中注册了微信,则开发者可以在用户打开小程序时直接获取用户。 UnionID,无需再次进行用户授权。

UnionID机制表明,如果开发人员有多个移动应用程序,网站应用程序和公共帐户(包括小程序),则unionid可用于区分用户的唯一性,只要它是微信开放平台帐户下的同一移动应用程序即可,网站应用程序和公共帐户(包括小程序),用户的unionid是唯一的。换句话说,同一个用户,对于同一个微信开放平台下的不同应用程序,unionid是相同的。

因此,只要用户在帐户下使用了移动应用程序或公共号码,就会用相同且唯一的标签标记用户。一旦用户授权登录其中一个项目,开发人员就可以获得相同且唯一的标签。然后,登录到小程序时,用户可以直接“授权”。

请参阅:UnionID机制描述

“沈阳软件公司”的新闻页面文章、图片、音频、视频等稿件均为自媒体人、第三方机构发布或转载。如稿件涉及版权等问题,请与

我们联系删除或处理,客服QQ:55506560,稿件内容仅为传递更多信息之目的,不代表本网观点,亦不代表本网站赞同

其观点或证实其内容的真实性。