Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 7040F2009F9 for ; Mon, 23 May 2016 09:05:14 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 6EFAB160A2B; Mon, 23 May 2016 07:05:14 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id BFA8F160A0F for ; Mon, 23 May 2016 09:05:13 +0200 (CEST) Received: (qmail 31617 invoked by uid 500); 23 May 2016 07:05:13 -0000 Mailing-List: contact issues-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@cordova.apache.org Received: (qmail 31599 invoked by uid 99); 23 May 2016 07:05:12 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 23 May 2016 07:05:12 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id C9AA32C1F56 for ; Mon, 23 May 2016 07:05:12 +0000 (UTC) Date: Mon, 23 May 2016 07:05:12 +0000 (UTC) From: "Roberto De Simone (JIRA)" To: issues@cordova.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CB-11304) Backbutton does not suspend app correctly -> white screen on resume MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Mon, 23 May 2016 07:05:14 -0000 [ https://issues.apache.org/jira/browse/CB-11304?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15296012#comment-15296012 ] Roberto De Simone commented on CB-11304: ---------------------------------------- [~daserge] thanks for replying that fast! No, just tried it now - it is the same. But looking more at this issue, I think it is correct that the app should relaunch - trying Gmail, Hangouts and Twitter, I have the impression, they also relaunch. But of course they load fast. So the main problem seems to be, why the splash screen does not show up! > Backbutton does not suspend app correctly -> white screen on resume > ------------------------------------------------------------------- > > Key: CB-11304 > URL: https://issues.apache.org/jira/browse/CB-11304 > Project: Apache Cordova > Issue Type: Bug > Components: Android > Affects Versions: 6.0.0 > Environment: Cordova 6.0.0 > cordova-android@5.1.1 > Mac OSX > Android Studio 2.1 > Nexus 4 (Android 4.4.4) > Nexus 6p (Android 6.0.1) > Reporter: Roberto De Simone > Priority: Critical > > Using the backbutton to suspend (exit) the app, something is going wrongly. > When later resuming the app - through the app list or by selecting the app icon - the app loads again but without splash screen. When the JS is heavy, like an Ionic 2 app there is a white screen for several seconds which looks very ugly. When leaving the app with the hardware "home" button, the app suspends correctly. > This can be reproduced with the simplest possible Cordova app. > 1. cordova create test com.mydomain.test test > 2. cd test > 3. cordova add platform android > 4. cordova run android (on a device) > 5. Press the backbutton > 6. Switch to app list > 7. Select the app > -> for a very short time a white screen is visible - the time needed to load the JS. As the simplest app has very little JS, the effect is difficult to see on fast devices like a Nexus 6p. If you add heavy JS - like Ionic 2, then the effect is very well visible also on fast devices. > 8. Now, select the "home" button > 9. Switch to app list > 10. Select the app > -> the app resumes without loading the JS again - no white screen. > (Also to mention: the effect is the same when listening to the "backbutton" event and trying to exit the app with "navigator.app.exitApp() ") -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org For additional commands, e-mail: issues-help@cordova.apache.org