@capacitor-community/tap-jacking
TypeScript icon, indicating that this package has built-in type declarations

6.0.0 • Public • Published


Tap Jacking

@capacitor-community/tap-jacking

Tap Jacking is a technique where a malicious app tricks the user into clicking a security-relevant control (confirmation button etc.) by obscuring the UI with an overlay or by other means.

This plugin prevents tap jacking by calling setFilterTouchesWhenObscured(true) (Android 11 and below) or setHideOverlayWindows (Android 12+) as described in the Android Developer Documentation.

On iOS and web this call does nothing.

Install

npm install @capacitor-community/tap-jacking
npx cap sync

Usage

import { TapJacking } from '@capacitor-community/tap-jacking';
...
await TapJacking.preventOverlays();

API

preventOverlays()

preventOverlays() => Promise<void>

enableOverlays()

enableOverlays() => Promise<void>

Package Sidebar

Install

npm i @capacitor-community/tap-jacking

Weekly Downloads

1,712

Version

6.0.0

License

MIT

Unpacked Size

18.5 kB

Total Files

27

Last publish

Collaborators

  • ionicjs
  • danielprrazevedo
  • nkalupahana
  • dtarnawsky
  • ryaa
  • dallasjames
  • tafelnl
  • thegnuu
  • pbowyer
  • capcombot
  • jcesarmobile
  • maxlynch
  • mhartington
  • it_mike_s
  • byrds
  • rdlabo
  • priyankpatel
  • dwieeb
  • stewan
  • arielhernandezmusa
  • jeepq
  • start9keagan
  • boosten
  • nklayman
  • ihadeed
  • ckgaparajita
  • jpender
  • nhyatt
  • pwespi
  • epicshaggy
  • thomasvidas
  • robingenz
  • diachedelic
  • johnborges
  • tobyas
  • elylucas
  • larsmikkelsen
  • giodimiliaionic
  • brownoxford
  • mrbatista
  • bazuka5801
  • hemang