-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
【IOS WeChat 】No return data! #645
Comments
@FeSeason Thank you for the report. I'm not familiar with WeChat, so could you please give steps to reproduce? |
AppLink【ios】: https://apps.apple.com/cn/app/wei/id414478124
|
同样遇到 ios wechat 无返回 |
same problem in IOS WeChat |
@FeSeason @yuhonyon @caohongtao I need your help. Please scan this QR with WeChat so that I can sign up and debug the issue: What the WeChat application saysContact a WeChat user who meets the following conditions.(They do not have to be your WeChat friend.)a. Signed up for WeChat over 1 month ago if they are an international user or over 6 months ago if they are a Chinese Mainland user Ask them to scan the following QR code using WeChat. |
Please give me access to WeChat or investigate the problem by yourself, otherwise I don't be able to help you. Please try to use NPM installation method and let me know if it helps. |
Hi @Finesse, tried to scan the code but it says QR code is expired. Could you share a new one? |
@Perpherior @FeSeason Lets try registration first. Please try this code: If I can’t register, then we will try to debug remotely. |
Done! |
@FeSeason Thank you! I’ll check the bug soon |
I've found the reason of the bug. The fontPreferences entropy source doesn't complete. It creates an iframe with an srcdoc attribute and waits for the iframe to load, but the iframe doesn't load in WeChat browser for some reason. I've found a solution. If I move the |
The fix will be published in v3.1.1 |
This problem was fixed in ios 14.x,but the problem still exisits in wechat with ios 13.x. code in this html : <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
hello
<script>
function initFingerprintJS() {
// Initialize an agent at application startup.
const fpPromise = FingerprintJS.load();
alert('hello 0')
// Get the visitor identifier when you need it.
fpPromise
.then((fp) => {
// Here can get fp
alert('hello 1')
return fp.get()
})
.then((result) => {
// No executed!!
// This is the visitor identifier:
const visitorId = result.visitorId;
alert(visitorId);
});
}
</script>
<script
async
src="https://cdn.jsdelivr.net/npm/@fingerprintjs/fingerprintjs@3.1.1/dist/fp.min.js"
onload="initFingerprintJS()"
></script>
</body>
</html> |
Considering iOS 13. The fontPreferences and the fonts entropy sources don't complete. They create iframes and wait for the iframes to load, but the iframes don't load in WeChat browser for some reason. I've tried using both The solution that I've found is waiting until @zerrol Fixed by e11ed73. The fixed will be published in the next library release. If you need the fix soon, you can use the current master version: fp.min.js.zip. |
The problem happened in a Cordova application too (it uses WKWebView). The findings above are suitable for Cordova. |
The problem still happens in iOS 12. @jyxu1016 Unfortunately, I don't have an iOS 12 device to debug, so you need to debug the issue by yourself. A probable reason is that an iframe loading promise never settles, therefore the You can start your own FingerprintJS development playground to debug the issue: download the repository's code and follow the instructions. Once you start a playground and open it in WeChat, add I'll try to research the bug in a Cordova application on iOS 12 simulator, but it won't be a 100% reliable solution. |
the problem also exisits in wechat with ios 13.x, read the comments above, this problem has always existed, IOS wechat is not available |
@jyxu1016 I can't reproduce it on iOS 13.6.1 WeChat 8.0.6. I open https://fingerprintjs.github.io/fingerprintjs and see this: |
I open https://fingerprintjs.github.io/fingerprintjs/ ,I can get it, too But using the following is not executed fpPromise |
@jyxu1016 I've realized that the fix for iOS 13 hasn't been published yet, sorry. If you need the fix now, you can use the current master version: fp.min.js.zip. Please subscribe to the repository updates to get notified when the fix is published to NPM. Could you please check whether https://fingerprintjs.github.io/fingerprintjs/ works in WeChat on iOS 12? |
https://fingerprintjs.github.io/fingerprintjs/:it is available in WeChat on iOS 12 |
@jyxu1016 Thank you. I think we will publish it soon. |
@Finesse I'm waiting for you to publish every day |
Scenario
userAgent:
Mozilla/5.0 (iPhone; CPU iPhone OS 14_4 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 MicroMessenger/8.0.2(0x18000239) NetType/WIFI Language/zh_CN
fingerprintjs@3
The text was updated successfully, but these errors were encountered: