Detect in-app browsers
yarn add inapp-spy
import InAppSpy from "inapp-spy";
const { isInApp, appName, ua } = InAppSpy();
InAppSpy(options: { ua?: string } | undefined)
{
ua?: string;
}
isInApp: boolean;
appName: "line" |
"messenger" |
"facebook" |
"twitter" |
"wechat" |
"instagram" |
"tiktok" |
"snapchat" |
undefined; // undefined when it doesn't match an known app above, `isInApp` can still be true
ua: string; // 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.