Detect in-app browsers - fork of detect-inapp
with API modifications + additions
yarn add inapp-spy
import InAppSpy from "inapp-spy";
const { isInApp, appName } = InAppSpy();
Detected in-app browser
boolean
Recognized app key with in-app browser
"messenger" |
"facebook" |
"twitter" |
"wechat" |
"instagram" |
"tiktok" |
"snapchat" |
"line" |
undefined;
Can be undefined
if isInApp: true
.
Pretty printed app name ie: tiktok
is TikTok
. Subject to change,
appKey
is recommended for programmatic use.
string
The user agent passed in or figured out by InAppSpy()
function
string
{
ua?: string;
}
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.