![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
@dvlden/is-webview
Advanced tools
Detect if a visitor is coming through a webview or a native browser using user-agent.
A utility module that takes user-agent string and determines whether it uses webview or native browser. It has been tested for Android and Apple devices with a few samples collected by running ads.
For my very specific use-case, it successfully detects viewing from Facebook, Instagram, Tiktok and Snapchat.
It does not rely on
window.navigator.standalone
for iOS, to allow Node.js to also use this module.
Use your favourite package manager... In my case that's pnpm
.
pnpm i @dvlden/is-webview
Browser
import { isWebview } from '@dvlden/is-webview'
if (isWebview(window.navigator.userAgent)) {
// do something
}
Node
const { isWebview } = require('@dvlden/is-webview')
if (isWebview(/* pass user-agent from the request */)) {
// do something
}
Did you know that all of the apps that offer a webview experience (in-app browser), are tracking their users through it. This is especially true for social media apps. That's the main reason why I made this module; to help some websites escape tracking by telling visitors to tap on the ...
from Webview and open the website in the browser, while keeping query parameters that social media appends for pixel tracking.
FAQs
Detect if a visitor is coming through a webview or a native browser using user-agent.
The npm package @dvlden/is-webview receives a total of 185 weekly downloads. As such, @dvlden/is-webview popularity was classified as not popular.
We found that @dvlden/is-webview demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.