This article is a mirror article of machine translation, please click here to jump to the original article.

View: 20821|Reply: 5

WeChat official account development pictures cannot be displayed on the iOS platform

[Copy link]
Posted on 7/21/2017 9:54:48 AM | | | |


As above, when I was doing WeChat official account development, I didn't test the iOS mobile platform.

I just ran it from the Android phone, and found that it was normal, no problem, but on the Apple phone, select the album picture, and the problem cannot be displayed normally

Check out the official WeChat documentation

2: The page previews the image via LocalID
Changes: JSSDK versions below 1.2.0 no longer support previewing images by using localld returned by using the chooseImage api in the form of "img src=wxLocalResource://50114659201332".
Adaptation suggestion: Upgrading the JSSDK to the latest version of 1.2.0 can help the page adapt automatically, but it may not be effective in some scenarios
getLocalImgData interface to get the data directly.
。 (The current online version of JSSDk is 1.0.0 and 1.1.0, and the updated version is 1.2.0, https://res.wx.qq.com/open/js/jweixin-1.2.0.js)


There are two solutions:

First solution:

My WeChat js version is 1.0.0 Then, delete, re-reference version 1.2.0, the problem is solved!!

Second solution:

Get the local image interface







Previous:.NET Framework 4.5 offline full version download
Next:Discuz X3.3 post tab does not show workarounds
 Landlord| Posted on 7/21/2017 11:15:33 AM |
Adaptation suggestion: Directly upgrading the JSSDK to the latest version of 1.2.0 can help the page automatically adapt, but in It may not be effective in some scenarios, can be used at this time
getLocalImgData interface to get the data directly.




It is recommended that you use the second method to solve it, although it is a bit troublesome
Posted on 9/9/2017 9:53:11 AM |
I don't understand
Posted on 9/10/2017 9:51:53 AM |
Fall sad, slap sad, slap sab
Posted on 1/22/2018 5:19:33 PM |
What a master
Posted on 6/27/2018 6:04:25 PM |
It's really amazing!
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com