The H5 page calls Wechat to scan it.

Wechat says in the open platform:

for security reasons, the login of Wechat of the website application needs to be realized by Wechat scanning the QR code. https://open.weixin.qq.com/cg.

it is convenient to log in with Wechat on pc and scan the QR code. It is too troublesome on the mobile end, for example, users enter the H5 page of the website through Baidu search on the mobile terminal, scan the QR code to log in to Wechat, save the QR code or screenshot first, then open Wechat, and then select the QR code from the album, and then identify it.

question:
can you directly call Wechat to scan when the mobile H5 page presses the QR code?

Mar.05,2021

  1. based on the experience of H5 calling Wechat's payment, JSDK;
  2. is required.
  3. it seems that the API in JSDK can be scanned by calling Wechat. set Wechat to scan the interface
  4. if so, open the H5 page in Wechat browser and call the wx native method

  1. has done Wechat and even wifi scenes, and has come into contact with the demand of "pull up Wechat". At that time, it was a rented test machine, there were probably more than 20 mainstream models, and support accounted for about 80%? Of course, I don't rule out that individual models have their own special methods, and I haven't solved the situation.
  2. if it is a single API hard pull, it may not be easy to do. In addition, Wechat scan should first call the native camera, the cost of educating users is also too high. And your user scenario I also think the process is too long, may pull up the bounce rate.
  3. as far as the product is concerned, it is recommended that your mobile end is limited to Wechat webview. If you are not prompted to open Wechat and then open this website, you can directly use the jump method in Wechat (without looking at the original document, but generally speaking, the QR code can be scanned by the URL. If you can get the parameters and provide a jump callback, you can directly use the jump to do it). You can even open a copy of Mini Program directly if appropriate. This seems rude, but being fixed within a framework is conducive to providing a relatively consistent user experience, and some technical risks can be controlled, which can be considered.

has made similar requirements. In Wechat's browser, you can scan the interface by calling Wechat in Wechat's js-sdk. The document is in https://mp.weixin.qq.com/wiki.

.
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1eab685-2050.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1eab685-2050.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?