Coder Social home page Coder Social logo

firstbirdtech / privacyscreenplugin Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mobilidadebpi/privacyscreenplugin

0.0 3.0 0.0 67 KB

Cordova / PhoneGap plugin that secures your app from displaying a screenshot in task switchers under Android and iOS. Keeps sensitive information private.

License: MIT License

Java 28.96% Objective-C 70.82% JavaScript 0.22%

privacyscreenplugin's Introduction

PrivacyScreenPlugin

Both iOS (as of iOS 7) and Android have app switchers that display a screenshot of your app.

This is a lovely feature for most apps, but if your app displays sensitive information this is a possible privacy risk.

This plugin flags your app so that it doesn't show your users' sensitive data in the task switcher. It sets the FLAG_SECURE flag in Android (which also prevents manual screenshots from being taken) and hides the window in iOS.

On iOS this plugin will show a gradient color view on top of your window.

Installation

Add this line to config.xml:

<plugin name="cordova-plugin-fb-privacyscreen" spec="https://github.com/firstbirdtech/PrivacyScreenPlugin.git" />

Usage:

This plugin exposes no interface in JavaScript, it simply sets your app to be private. You don't need to do anything except install the plugin.

For iOS there are 3 preferences that can be set in config.xml:

  • "PrivacyOnBackground": If set to "true" allows privacy screen to be shown only when app enters background (i.e. switched to another app or pressed the home button)

When using splash storyboard add images to the config xml, i.e

<splash src="res/screen/ios/LaunchImage@2x~universal~anyany.png" />
<splash src="res/screen/ios/LaunchImage@3x~universal~anyany.png" />

Test this plugin on a real device because the iOS simulator (7.1 at least) does a poor job hiding your app.

privacyscreenplugin's People

Contributors

devgeeks avatar mobilitytiago avatar eddyverbruggen avatar dmitryevseev avatar ncaeiro75 avatar

Watchers

James Cloos avatar Daniel avatar Daniel Pfeiffer avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.