WeChat Mini Programs failed to get the cell phone number.

I would like to ask all the great gods, obtain the user"s mobile phone number through the getPhoneNumber method in WeChat Mini Programs, and remind the user that the bound mobile phone needs to be verified. Please complete the SMS verification step on the client side, but my mobile phone number has been verified in Wechat. Have you ever encountered such a problem?

get the mobile number code as follows:


I don't quite understand what you're saying. I'll probably reply. Getting the mobile phone number for SMS verification needs to be on the client side, and if your mobile number Mini Program gets the mobile number without permission, there will be SMS verification. Once you have (no matter which Mini Program it is), you don't need SMS verification for the second time. As long as you click allow, you can


also encounter the same problem. Test using Meituan Mini Program to verify the mobile phone number, can you get the mobile phone number? is there any way to verify the CAPTCHA like Meituan?


this situation will not happen if you run on the mobile phone once, because there is no mobile phone number stored in Wechat in the developer tool. You need to run through the mobile phone to get the mobile number of Wechat users


all mobile phones are like this? Why don't you try another phone? This dialog box only pops up in


IDE. A text message is sent on the real machine and then asked for input.


generate an experimental version of Mini Program so that the phone can be verified on a real phone

this is because you have tested it on a development tool. Please test and use


this problem is not caused by WeChat Mini Programs's lack of certification.

Menu