Rplus / detect-inapp

detect browser or in-app information for mobile

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Detect InApp

detect browser or in-app information for mobile

Code Example

import InApp from 'detect-inapp';

const inapp = new InApp(navigator.userAgent || navigator.vendor || window.opera);

Installation

yarn add detect-inapp

API Reference

  • inapp.isMobile()

  • inapp.isTablet()

  • inapp.isDesktop()

  • inapp.inBot()

  • inapp.isInApp()

  • inapp.isApplePay()

  • inapp.isInstalled('APP_NAME')

  • inapp.os

valuse: 'android', 'ios', 'windows'

  • inapp.device

  • inapp.browser

valuse: 'messenger', 'facebook', 'line', 'wechat', 'instagram', 'chrome', 'safari', 'ie', 'firefox'

  • inapp.addMatch('NAME', 'Regex')

License

MIT License

About

detect browser or in-app information for mobile


Languages

Language:JavaScript 100.0%