detect browser or in-app information for mobile
import InApp from 'detect-inapp';
const inapp = new InApp(navigator.userAgent || navigator.vendor || window.opera);
yarn add detect-inapp
-
inapp.isMobile
-
inapp.isDesktop
-
inapp.isInApp
-
inapp.browser
values: 'messenger', 'facebook', 'line', 'twitter', 'wechat', 'miui', 'instagram', 'chrome', 'safari', 'ie', 'firefox'
MIT License