WeChat mini programs will gradually cancel the method of obtaining users through wx.getUserInfo.

Recently, the WeChat public platform issued a notice stating that WeChat mini programs and mini games will gradually cancel the use of wx.getUserInfo to obtain user information, reminding developers to gradually use other methods to replace wx.getUserInfo.

WeChat official notice stated: The interface for obtaining user information for mini programs and mini games has been adjusted. In order to optimize the user experience, the development method of using the wx.getUserInfo interface to directly pop up the authorization box will gradually no longer be supported. Starting from April 30, 2018, when the trial version and development version of mini programs and mini games call the wx.getUserInfo interface, the authorization inquiry box will not pop up, and the call will fail by default. The official version is not affected yet. Developers can use the following methods to obtain or display user information. The official text is as follows:

In other words, in the future development process, the previously commonly used wx.getUserInfo method should be gradually replaced by open-type and open-data methods. Although the development version and trial version will not support the wx.getUserInfo method after April 30, the official version will not be affected for the time being. However, it is not ruled out that the official version in the future will not support obtaining user information through wx.getUserInfo at all.