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 B3673200C16 for ; Wed, 25 Jan 2017 22:31:32 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id B207D160B3D; Wed, 25 Jan 2017 21:31:32 +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 D1D8F160B5A for ; Wed, 25 Jan 2017 22:31:31 +0100 (CET) Received: (qmail 92524 invoked by uid 500); 25 Jan 2017 21:31:30 -0000 Mailing-List: contact dev-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cordova.apache.org Delivered-To: mailing list dev@cordova.apache.org Received: (qmail 92098 invoked by uid 99); 25 Jan 2017 21:31:30 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 Jan 2017 21:31:30 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 1B34818495F for ; Wed, 25 Jan 2017 21:31:30 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.629 X-Spam-Level: X-Spam-Status: No, score=0.629 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, KAM_LOTSOFHASH=0.25, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id NuYX-vuFN1lm for ; Wed, 25 Jan 2017 21:31:24 +0000 (UTC) Received: from mail-vk0-f50.google.com (mail-vk0-f50.google.com [209.85.213.50]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 390995F472 for ; Wed, 25 Jan 2017 21:31:24 +0000 (UTC) Received: by mail-vk0-f50.google.com with SMTP id t8so142902474vke.3 for ; Wed, 25 Jan 2017 13:31:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=Hrqu+41kLSrVwFo9Jsvun6B8iaMsSeKyNPnUitPe27A=; b=RVOrNU2vFGRPNrQ8HFd6IbP/ZBXxfnPqseHiw2lLUcZXH40xDeFLOo82HMUWf7yPkj IBCqZbVaGOTQZ3AyegvKtjmJd86xYJUTTTEwYOrX/ltTl3EsBAbX+ysODko7HUoh4oec Pn7jrADeKUi08JaWlnuTbb52JSgVwQJVpXNVHPKGKvwbFTkd39Z2bPIjl7jvHVjtgJzu n5FB6S/d+0JuafZIMJqeMFVdNeffnbO6w+V156UWYAFgmfnAcjTKYu6hksva+i1vQAr1 F91+EZJBMprLHFgVE1StAliZQU3n22iGXkU95EhRYhwfVOkdJLvs7o+CBdvCdP5q4KNF Jq4w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=Hrqu+41kLSrVwFo9Jsvun6B8iaMsSeKyNPnUitPe27A=; b=tQgMyFqFIDsxp9x7cm/TwnCigVKjms2uSm8EW+PRDexkI2/bvgIA+RdZy1jHKSDTRp oiaDCeKMlh05Lotqc+VMHAc0oAeT91zkMLmgGrXdfwfIAujwkw317IOoLUD5srrtVUm4 Y9DmqXE2YRFXAdalacB171eWWYSUiEq0hs87gkJ8FGcY2w+5mxsHiLvGqDWQbIuumcJC TWm9Ji60Fr5nYLc1b3fRTDOFYN5OS2vHoycrfyddF77kt4/6zIVKTYQnpts+bOtYmEbh F0pB3gzJmStfgWVgNXNsX7J3l43ZJ/bFk1r2YRBhTs8hgkwfLq9DTYfR06EaVNH2CQPW kTtA== X-Gm-Message-State: AIkVDXI5VCa2gNePeQtmyYq/glrvWm7QcGPjZoD6gthypzUzoA6vnBHlMEKLpQ+4oX/MPNzCmVfQoKYXXe6i4A== X-Received: by 10.31.216.5 with SMTP id p5mr7969475vkg.170.1485379881670; Wed, 25 Jan 2017 13:31:21 -0800 (PST) MIME-Version: 1.0 Received: by 10.103.18.132 with HTTP; Wed, 25 Jan 2017 13:31:01 -0800 (PST) In-Reply-To: References: <000401d27310$44778440$cd668cc0$@apache.org> From: Filip Maj Date: Wed, 25 Jan 2017 13:31:01 -0800 Message-ID: Subject: Re: CB-11602: (android) Adds onRestart event support To: dev@cordova.apache.org Content-Type: text/plain; charset=UTF-8 archived-at: Wed, 25 Jan 2017 21:31:32 -0000 +1 ! On Wed, Jan 25, 2017 at 11:35 AM, Kerri Shotts wrote: > +1 to moving splash screen into platforms. > > > ~ Kerri > >> On Jan 25, 2017, at 01:09, Simon MacDonald wrote: >> >> I would be happy to see Splash Screen go back to the platforms as well. >> >> Simon Mac Donald >> http://simonmacdonald.com >> >> On Tue, Jan 24, 2017 at 10:56 PM, Joe Bowser wrote: >> >>> OK, time to address the elephant in the room: >>> >>> Why is the Splashscreen still a plugin? It was only made a plugin because >>> someone wanted to be a purist about plugins, and there's actually no good >>> reason for it to not just be built into Cordova. I used to think >>> Splashscreens were dumb and were used to cover up bad loading times, but >>> there's a good business case for them since people expect them. >>> >>> Also, related, Splashscreen on Android needs to be rebuilt anyway. There's >>> numerous bugs with it, and I think adding it back into the platforms might >>> actually delete code and simplify things. >>> >>> I know that we said these exact things before at meetings and wrote them in >>> minutes that we posted here, but I think now is probably good time to bring >>> this up. >>> >>> The only reason I don't want to throw this back into Android is because I >>> don't want crap ton of PRs in Cordova-Android just all about Splashscreen. >>> That said, at least we can get those unit tested and actually make sure >>> that 3 second delays are actually 3 seconds and not some random value, and >>> other things like that. >>> >>> >>> On Tue, Jan 24, 2017 at 10:47 PM, Jesse wrote: >>> >>>> I would like to see us move towards making this platform level >>>> functionality, The requirements of this API happen mostly outside of the >>>> scope of a plugin's lifetime. >>>> >>>> If we could get to an api that was just, images with the right names are >>>> presented when the OS decides to do it, the way all native platforms >>> work, >>>> I think we would be better off. >>>> >>>> >>>> @purplecabbage >>>> risingj.com >>>> >>>> On Fri, Jan 20, 2017 at 3:28 AM, wrote: >>>> >>>>> Hello, >>>>> >>>>> There's a related issue marked as WontFix [1][2] but as far as I >>>>> understand it does not apply to the SplashScreen plugin as it is >>>>> initialized on startup (via ). >>>>> So the question is - should we add onRestart as it is not fundamentally >>>>> different from onStart, which is supported? >>>>> Or is there a better/more correct way to do it? >>>>> >>>>> [1]: https://issues.apache.org/jira/browse/CB-9620 >>>>> [2]: https://issues.apache.org/jira/browse/CB-9621 >>>>> >>>>> Please let me know if you have any questions or considerations. >>>>> >>>>> Best regards, >>>>> Sergey Shakhnazarov, >>>>> Akvelon developer. >>>>> >>>>> -----Original Message----- >>>>> From: Sergey Shakhnazarov [mailto:daserge@apache.org] >>>>> Sent: Thursday, January 12, 2017 12:10 >>>>> To: dev >>>>> Subject: CB-11602: (android) Adds onRestart event support >>>>> >>>>> Hi guys, >>>>> >>>>> I've investigated the CB-11602 Splashscreen plugin receives onPause and >>>>> hides [1] and realized that the splashscreen plugin currently doesn't >>>>> handle onStop->onRestart [2] events properly. >>>>> The reason is that we don't have the onRestart event in cordova-android >>>> so >>>>> I propose to add it [3] and update the splash screen plugin code >>>>> accordingly to handle this pause-resume events correctly [4] (i.e. >>>>> save/restore the splashscreen state on app switch/device lock). >>>>> Please take a look. >>>>> >>>>> [1]: https://na01.safelinks.protection.outlook.com/?url=https%3A% >>>>> 2F%2Fissues.apache.org%2Fjira%2Fbrowse%2FCB-11602&data=02% >>>>> 7C01%7Cv-seshak%40microsoft.com%7Cb58575c22fb04ad3c29308d4 >>>>> 3acabe0f%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636198 >>>>> 089826262946&sdata=ic0pYXcxfToH7eHWkPUktKDgm0aYMhHgfxqhJ8ECS >>>>> sU%3D&reserved=0 >>>>> [2]: >>>>> https://na01.safelinks.protection.outlook.com/?url=https%3A% >>>>> 2F%2Fdeveloper.android.com%2Freference%2Fandroid%2Fapp% >>>>> 2FActivity.html%23onRestart&data=02%7C01%7Cv-seshak% >>>>> 40microsoft.com%7Cb58575c22fb04ad3c29308d43acabe0f%7C72f988b >>>>> f86f141af91ab2d7cd011db47%7C1%7C0%7C636198089826262946&sdata=Ido% >>>>> 2FCxLiFO9fdJxCTb1HvIt9dBo%2BMtIjwUqo6%2FDyPaw%3D&reserved=0() >>>>> [3]: https://na01.safelinks.protection.outlook.com/?url=https%3A% >>>>> 2F%2Fgithub.com%2Fapache%2Fcordova-android%2Fpull% >>>>> 2F353%2Ffiles&data=02%7C01%7Cv-seshak%40microsoft.com%7Cb >>>>> 58575c22fb04ad3c29308d43acabe0f%7C72f988bf86f141af91ab2d7cd0 >>>>> 11db47%7C1%7C0%7C636198089826272954&sdata=mMHBhAcWSuBXgWOVFS >>>>> TyX8tV8cikEKfAO4hX95A7Zcs%3D&reserved=0 >>>>> [4]: https://na01.safelinks.protection.outlook.com/?url=https%3A% >>>>> 2F%2Fgithub.com%2Fapache%2Fcordova-plugin-splashscreen% >>>>> 2Fpull%2F120%2Ffiles&data=02%7C01%7Cv-seshak%40microsoft. >>>>> com%7Cb58575c22fb04ad3c29308d43acabe0f%7C72f988bf86f141af91a >>>>> b2d7cd011db47%7C1%7C0%7C636198089826272954&sdata=Xg5ldRRKYwl >>>>> UGvbCWMUOzk2HIzWStMJze0jFTzif3A8%3D&reserved=0 >>>>> >>>>> Best regards, >>>>> Sergey Shakhnazarov, >>>>> Akvelon developer. >>>>> >>>>> >>>>> --------------------------------------------------------------------- >>>>> To unsubscribe, e-mail: dev-unsubscribe@cordova.apache.org >>>>> For additional commands, e-mail: dev-help@cordova.apache.org >>>>> >>>>> >>>> >>> > --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@cordova.apache.org For additional commands, e-mail: dev-help@cordova.apache.org