Stan Reduta
Stan Reduta

Reputation: 3492

Prevent iOS app from keeping screen snapshot using Cordova

I'm working on cordova/ng4 ios application which contains personal data of users and I don't want old snapshot to be displayed when going back to application from multitasking or re-opening the application. Is it possible to set some kind of property in .plist file that will block keeping the snapshot? P.S. I also use UIApplicationExitsOnSuspend property which prevents application from running in the background.

Upvotes: 1

Views: 3896

Answers (1)

jcesarmobile
jcesarmobile

Reputation: 53361

There are a few plugins that prevent screenshots or replace the snapshot of the app

https://github.com/devgeeks/PrivacyScreenPlugin

https://github.com/hellojianfeng/PrivacyScreenPlugin

https://github.com/lifeofcoding/cordova-blur-app-privacy-screen

Also, to write on the .plist, you can create a plugin and use the config-file tag

<config-file target="*-Info.plist" parent="KeyToWrite">
  //Values to write
</config-file>

Or use this one that allows you to do the same from the config.xml

Or create a hook

Upvotes: 2

Related Questions