Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

WeChat Mini Programs's method of sharing and authorizing the Adjustment of user Information Interface

2025-02-22 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly introduces the relevant knowledge of WeChat Mini Programs's method of sharing and authorizing access to user information interface adjustment, the content is detailed and easy to understand, the operation is simple and fast, and has a certain reference value. I believe everyone will gain something after reading this article on the method of WeChat Mini Programs sharing and authorized access to user information interface adjustment. Let's take a look.

The adjustment plan is as follows:

1. Wechat once again adjusts Mini Program sharing and user information authorization and other interfaces. In view of the recent unreasonable use of some Mini Program interface capabilities, the Wechat public platform will adjust the interface capacity. The adjustment plan is as follows:

Sharing monitoring API: in the newly submitted version from October 10, when users share messages with friends from Mini programs and Mini Game, developers will not be able to know whether the sharing is complete, nor will they be able to obtain group ID immediately after sharing.

API getUserInfo: for the newly submitted version since October 10, users need to click on the component in Mini Program and Mini Game before they can trigger login authorization pop-up window, authorize their nickname avatar and other data.

API openSetting: for the newly submitted version from October 10, users need to click on Mini Program and Mini Game before they can jump to the settings page and manage authorization information.

After adjustment, "Open Mini Program Settings Page" will support the following two implementation methods:

Method 1: use the button component to use this feature. The sample code is as follows:

Open the settings page

Method 2: the call to the wx.openSetting API is triggered by the click behavior. The sample code is as follows:

Open the settings page openSetting () {wx.openSetting ()}

Method 2 is supported in the latest version of the developer tool (the basic library is cut to 2.2.4 or above), and developers can adapt as soon as possible.

This adjustment will have an impact on calling the wx.openSetting interface directly.

The original implementation of calling the wx.openSetting API directly without user clicks is no longer supported. Examples of incorrect uses that are about to be discarded are as follows:

OnShow () {wx.openSetting ()}

New releases submitted from October 10 will be affected by this adjustment.

Please note that the newly submitted and released Mini Program version will no longer support the "Open Mini Program Settings Page" API that can be directly called without user click. Please adapt as soon as possible.

The adjustment policy takes effect in the base library version 2.3.0 or above, which corresponds to Wechat client version 6.7.2. In addition, considering compatibility and other issues, it is not affected by this policy in environments below the base library version 2.3.0.

This is the end of the article on "WeChat Mini Programs's method of sharing and authorizing access to user information interface adjustment". Thank you for reading! I believe you all have a certain understanding of "WeChat Mini Programs's method of sharing and authorizing access to user information interface adjustment". If you want to learn more, you are welcome to follow the industry information channel.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report