f2etw / detect-inapp Goto Github PK
View Code? Open in Web Editor NEWdetect browser or in-app information for mobile
Home Page: https://f2etw.github.io/detect-inapp
detect browser or in-app information for mobile
Home Page: https://f2etw.github.io/detect-inapp
For the UA Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.114 Safari/537.36
I got a browser "other"
Would be great to detect TikTok as well. It does detect correctly though that the TikTok browser is inApp. ๐
Here's an example UA
Mozilla/5.0 (Linux; Android 12; Pixel 3 Build/SP1A.210812.015; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/96.0.4664.104 Mobile Safari/537.36 trill_2022206050 JsSdk/1.0 NetType/WIFI Channel/googleplay AppName/musical_ly app_version/22.6.5 ByteLocale/en ByteFullLocale/en Region/US BytedanceWebview/d8a21c6
Hi,
I noticed that the mobile chrome issue has been fixed. However, the latest published version in NPM is years old. Maybe consider publishing the latest changes in NPM too?
Though, I think these could be rather low hanging fruits for the next version too:
#30
#35
Here seems to be listed the most popular browsers user agents on different devices: https://www.whatismybrowser.com/guides/the-latest-user-agent/
https://techblog.willshouse.com/2012/01/03/most-common-user-agents/
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_4) AppleWebKit/603.1.30 (KHTML, like Gecko) Version/10.1 Safari/603.1.30
doNotTrack=null
plugins=[object PluginArray]
mimeTypes=[object MimeTypeArray]
cookieEnabled=true
geolocation=[object Geolocation]
hardwareConcurrency=4
appCodeName=Mozilla
appName=Netscape
appVersion=5.0 (Macintosh; Intel Mac OS X 10_12_4) AppleWebKit/603.1.30 (KHTML, like Gecko) Version/10.1 Safari/603.1.30
platform=MacIntel
product=Gecko
productSub=20030107
userAgent=Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_4) AppleWebKit/603.1.30 (KHTML, like Gecko) Version/10.1 Safari/603.1.30
vendor=Apple Computer, Inc.
vendorSub=
language=zh-TW
languages=zh-TW
onLine=true
javaEnabled=function javaEnabled() {
[native code]
}
getStorageUpdates=function getStorageUpdates() {
[native code]
}
getGamepads=function getGamepads() {
[native code]
}
Mozilla/5.0 (Linux; Android 7.1.2; Pixel Build/N2G47E; zh-tw) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.135 Mobile Safari/537.36 Puffin/6.0.9.15863AP
Please look into this, seems like being on android and chrome I'm getting it as an inapp browser. Thank you
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:50.0) Gecko/20100101 Firefox/50.0
getBattery=function getBattery() {
[native code]
}
vibrate=function vibrate() {
[native code]
}
javaEnabled=function javaEnabled() {
[native code]
}
getGamepads=function getGamepads() {
[native code]
}
mozGetUserMedia=function mozGetUserMedia() {
[native code]
}
sendBeacon=function sendBeacon() {
[native code]
}
requestMediaKeySystemAccess=function requestMediaKeySystemAccess() {
[native code]
}
registerProtocolHandler=function registerProtocolHandler() {
[native code]
}
registerContentHandler=function registerContentHandler() {
[native code]
}
taintEnabled=function taintEnabled() {
[native code]
}
permissions=[object Permissions]
mimeTypes=[object MimeTypeArray]
plugins=[object PluginArray]
doNotTrack=unspecified
oscpu=Intel Mac OS X 10.11
vendor=
vendorSub=
productSub=20100101
cookieEnabled=true
buildID=20161208153507
mediaDevices=[object MediaDevices]
serviceWorker=[object ServiceWorkerContainer]
hardwareConcurrency=8
geolocation=[object Geolocation]
appCodeName=Mozilla
appName=Netscape
appVersion=5.0 (Macintosh)
platform=MacIntel
userAgent=Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:50.0) Gecko/20100101 Firefox/50.0
product=Gecko
language=en-US
languages=en-US,en
onLine=true
Looks like maybe the relevant code is only on develop
branch?
Mozilla/5.0 (iPhone; CPU iPhone OS 10_2_1 like Mac OS X) AppleWebKit/602.4.6 (KHTML, like Gecko) FxiOS/7.5b3349 Mobile/14D27 Safari/602.4.6
plugins: [object PluginArray]
mimeTypes: [object MimeTypeArray]
cookieEnabled: true
standalone: false
geolocation: [object Geolocation]
appCodeName: Mozilla
appName: Netscape
appVersion: 5.0 (iPhone; CPU iPhone OS 10_2_1 like Mac OS X) AppleWebKit/602.4.6 (KHTML, like Gecko) FxiOS/7.5b3349 Mobile/14D27 Safari/602.4.6
platform: iPhone
product: Gecko
productSub: 20030107
userAgent: Mozilla/5.0 (iPhone; CPU iPhone OS 10_2_1 like Mac OS X) AppleWebKit/602.4.6 (KHTML, like Gecko) FxiOS/7.5b3349 Mobile/14D27 Safari/602.4.6
vendor: Apple Computer, Inc.
vendorSub:
language: zh-tw
onLine: true
javaEnabled: function javaEnabled() {
[native code]
}
getStorageUpdates: function getStorageUpdates() {
[native code]
}
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/603.2.5 (KHTML, like Gecko) Version/10.1.1 Safari/603.2.5
doNotTrack=null
plugins=[object PluginArray]
mimeTypes=[object MimeTypeArray]
cookieEnabled=true
geolocation=[object Geolocation]
hardwareConcurrency=8
appCodeName=Mozilla
appName=Netscape
appVersion=5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/603.2.5 (KHTML, like Gecko) Version/10.1.1 Safari/603.2.5
platform=MacIntel
product=Gecko
productSub=20030107
userAgent=Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/603.2.5 (KHTML, like Gecko) Version/10.1.1 Safari/603.2.5
vendor=Apple Computer, Inc.
vendorSub=
language=zh-TW
languages=zh-TW
onLine=true
javaEnabled=function javaEnabled() {
[native code]
}
getStorageUpdates=function getStorageUpdates() {
[native code]
}
getGamepads=function getGamepads() {
[native code]
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.