• Stars
    star
    103
  • Rank 326,015 (Top 7 %)
  • Language
    Objective-C
  • License
    MIT License
  • Created almost 10 years ago
  • Updated 4 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

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

NOTE: This plugin is NOT being actively maintained. I no longer work on Cordova/PhoneGap plugins and it is essentially abandonware. Please feel free to fork it and update it if you need to.

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 try to show your splashscreen in the app switcher. It will search for splashscreens prefixed by Default or the value of the key UILaunchImageFile in your .plist file. If it fails to find a splashscreen for a specific device or orientation (portrait or landscape), a black screen is shown instead.

Installation

For Cordova 3.x.x:

  1. To add this plugin just type: cordova plugin add cordova-plugin-privacyscreen or phonegap local plugin add cordova-plugin-privacyscreen
  2. To remove this plugin type: cordova plugin remove cordova-plugin-privacyscreen or phonegap local plugin remove cordova-plugin-privacyscreen

Usage:

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

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

License

The MIT License

Copyright (c) 2016 Tommy-Carlos Williams (http://github.com/devgeeks)

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

More Repositories

1

Canvas2ImagePlugin

PhoneGap / Cordova plugin for iOS to save the contents of an HTML canvas to the device's Photo Library
Java
211
star
2

ExampleHTML5AudioStreaming

Example project showing audio streaming using HTML5 Audio with PhoneGap on iOS - https://build.phonegap.com/apps/242993
JavaScript
164
star
3

grunt-init-cordova

Grunt init template for Apache Cordova cli-generated projects
JavaScript
27
star
4

PhoneListener

PhoneGap / Cordova Android plugin that allows your application to monitor changes in the phone's state (RINGING, OFFHOOK and IDLE) so that you can respond to them appropriately (pause your Media stream, etc).
Java
27
star
5

react-animated-views

A higher order component to make animated page views easier with react-router
JavaScript
20
star
6

VolumeSlider

PhoneGap / Cordova iOS plugin that allows you to add a native volume slider (MPVolumeView) to your app
Objective-C
16
star
7

Canvas2ImageDemo

Demo app for my PhoneGap / Cordova Canvas2ImagePlugin
JavaScript
7
star
8

ExampleAudioStreamer

This is an example of my AudioStreamer plugin in use
JavaScript
6
star
9

tinyvents

A very small and simple lib to attach events to plain JavaScript objects. Inspired by / based on https://github.com/jeromeetienne/microevent.js
JavaScript
5
star
10

echidna.js

Crypton is dead, long live Echidna.js
JavaScript
4
star
11

Notemindr

A Crypton app for creating notes with reminder attached to them
JavaScript
4
star
12

ReadItLaterPlugin

A PhoneGap plugin for iOS for saving a URL to Read It Later (http://readitlaterlist.com)
Objective-C
4
star
13

react-navigation-example

A playground to try and make mobile page navigation better using react
JavaScript
4
star
14

4ZZZ-app

Mobile app for the community radio station 4ZZZfm in Brisbane, QLD Australia
JavaScript
3
star
15

ExampleMobileDevWorkflow

An example of a mobile dev workflow
JavaScript
2
star
16

ChangeAVAudioSessionCategory

Cheap and dirty plugin to change the AVAudioSessionCategory in iOS
Objective-C
2
star
17

jQTouch-theme-for-Android

A very basic beginning of a theme for Android apps using jQTouch
2
star
18

ethernotes

Ethernotes is a zero-knowledge cloud-based notes app powered by Crypton
JavaScript
2
star
19

pixfor-vulnerable

intentionally vulnerable app for PGDay US 2016 Security and Privacy workshop
JavaScript
1
star
20

phonegap-topcoat-react-getting-started

1
star
21

presentation--none-of-the-above

Slides for my talk at the Melbourne Mobile meetup JavaScript UI Faceoff - "None of the above"
JavaScript
1
star