Detect in-app browsers
yarn add inapp-spy
import InAppSpy from "inapp-spy";
const { isInApp, appName } = InAppSpy();
InAppSpy(options: { ua?: string } | undefined)
{
ua?: string;
}
boolean
- Whether the user is in an in-app browser
Values: "messenger", "facebook", "twitter", "wechat", "instagram", "tiktok", "snapchat", "line", or undefined
Can be undefined even when isInApp
is true.
string
- The user agent passed in or figured out by InAppSpy()
function
MIT License
- Bowser - Browser + OS detection
- InAppDebugger - Easily debug in-app browsers. Uses both
bowser
andinapp-spy
libraries.
inapp-spy
is a fork of detect-inapp
with modifications. This wouldn't exist without the original work of the detect-inapp
contributors.