Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-15577] iOS: Disallow snapshot of app appearing on app resume

GitHub Issuen/a
TypeNew Feature
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2013-10-30T18:16:26.000+0000
Affected Version/sn/a
Fix Version/s2013 Sprint 22, 2013 Sprint 22 API, Release 3.2.0
ComponentsiOS
Labelsmodule_app, qe-testadded
ReporterPedro Enrique
AssigneePedro Enrique
Created2013-10-24T21:13:59.000+0000
Updated2013-12-04T23:31:56.000+0000

Description

Description

When the app goes to the background a screenshot of the current app state is taken. When the app resumes that screenshot is shown for a split of a second. This is to make a visual hint to the user that the app is still running where it was before going to the background. On iOS 7 that screenshot image is used also to display the app in the multitasking experience.

The problem:

For some customers this is a security concern, since that screenshot can reveal confidential app data, such as user back account numbers, usernames, private messages, etc...

New feature.

A property will be exposed in the Ti.App module to avoid this from happening. The splash screen image of the app will be shown instead of a snapshot.
Ti.App.forceSplashAsSnapshot = true;

Comments

  1. Pedro Enrique 2013-10-25

    PR: https://github.com/appcelerator/titanium_mobile/pull/4847
  2. Pedro Enrique 2013-10-28

    Closed previos PR as not valid. New PR: https://github.com/appcelerator/titanium_mobile/pull/4867 Sample code:
       Ti.App.forceSplashAsSnapshot = true;
       var win = Titanium.UI.createWindow({
           orientationModes: [
               Titanium.UI.PORTRAIT,
               Titanium.UI.LANDSCAPE_LEFT,
               Titanium.UI.LANDSCAPE_RIGHT
               Titanium.UI.UPSIDE_PORTRAIT
           ],
           backgroundColor: 'green'
       });
       win.open();
       
  3. Vishal Duggal 2013-10-30

    PR https://github.com/appcelerator/titanium_mobile/pull/4867 merged
  4. Wilson Luu 2013-10-30

    Closing ticket as fixed. Verified setting Ti.App.forceSplashAsSnapshot to true will display the splash screen when resuming an app. On iOS 7, the splash screen is displayed in the multitasking view. Tested on: Titanium Studio, build: 3.2.0.201310301740 SDK build: 3.2.0.v20131030150844 Xcode: 5.0 Device: iphone 4s (6.0.1), iphone 5s (7.0.2)

JSON Source