You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
🐛 Bug Report: Email OTP Login Misclassifies Flutter App as Mobile Browser #9372
Appwrite uses Matomo’s device-detector, which does not explicitly detect Flutter apps.
Would it be possible to allow setting the client type manually in the request or improve detection?
👀 Have you spent some time to check if this issue has been raised before?
Looking at their source code, I guess we need to format it with appname/bundle_id. So, if we did appname/com.example.myapp/1.0.0 iPhone17,1 iOS/18.1, it would detect it as:
Activity
mobeit00 commentedon Feb 16, 2025
We have already discussed this on Discord.
Thanks for your help! 🚀
stnguyen90 commentedon Feb 20, 2025
Right, so we generate a user agent that looks like:
Matomo's device detector will parse that as:
{ "isBot": false, "clientInfo": { "type": "browser", "name": "Mobile Safari", "short_name": "MF", "version": "", "engine": "WebKit", "engine_version": "", "family": "Safari" }, "browserFamily": "Safari", "isMobileOnlyBrowser": true, "osInfo": { "name": "iOS", "short_name": "IOS", "version": "18.1", "platform": "", "family": "iOS" }, "osFamily": "iOS", "device": 10, "deviceName": "phablet", "deviceBrand": { "name": "Apple", "short_name": "AP" }, "model": "iPhone 16 Pro", "icons": { "browser": "/icons/browsers/MF.png", "os": "/icons/os/IOS.png", "device": "/icons/devices/phablet.png", "brand": "/icons/brand/Apple.png" }, "clientHints": { "architecture": "", "bitness": "", "mobile": false, "model": "", "platform": "", "platformVersion": "", "uaFullVersion": "", "fullVersionList": {} }, "headers": null }Looking at their source code, I guess we need to format it with
appname/bundle_id. So, if we didappname/com.example.myapp/1.0.0 iPhone17,1 iOS/18.1, it would detect it as:{ "isBot": false, "clientInfo": { "type": "mobile app", "name": "com.example.myapp", "version": "" }, "browserFamily": null, "isMobileOnlyBrowser": false, "osInfo": { "name": "iOS", "short_name": "IOS", "version": "18.1", "platform": "", "family": "iOS" }, "osFamily": "iOS", "device": 10, "deviceName": "phablet", "deviceBrand": { "name": "Apple", "short_name": "AP" }, "model": "iPhone 16 Pro", "icons": { "browser": null, "os": "/icons/os/IOS.png", "device": "/icons/devices/phablet.png", "brand": "/icons/brand/Apple.png" }, "clientHints": { "architecture": "", "bitness": "", "mobile": false, "model": "", "platform": "", "platformVersion": "", "uaFullVersion": "", "fullVersionList": {} }, "headers": null }HarshMN2345 commentedon Sep 17, 2026
Fixed in #13739