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 A6A7D200B4A for ; Wed, 6 Jul 2016 08:03:12 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id A55CA160A76; Wed, 6 Jul 2016 06:03:12 +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 EC6D5160A6F for ; Wed, 6 Jul 2016 08:03:11 +0200 (CEST) Received: (qmail 79828 invoked by uid 500); 6 Jul 2016 06:03:11 -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 79805 invoked by uid 99); 6 Jul 2016 06:03:11 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Jul 2016 06:03:11 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id EC55D2C02A5 for ; Wed, 6 Jul 2016 06:03:10 +0000 (UTC) Date: Wed, 6 Jul 2016 06:03:10 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: issues@cordova.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CB-10653) Universal Windows Platform -- activationContext is incomplete MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 06 Jul 2016 06:03:12 -0000 [ https://issues.apache.org/jira/browse/CB-10653?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15363836#comment-15363836 ] ASF GitHub Bot commented on CB-10653: ------------------------------------- Github user daserge commented on the issue: https://github.com/apache/cordova-windows/pull/173 @afourney, see https://issues.apache.org/jira/browse/CB-11522?focusedCommentId=15359160&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-15359160 - we'll need to fix the clone method too, but it will not help missing the native types of cloned properties like StorageFile (so that a successive call to `Windows.Storage.FileIO.readTextAsync` will fail, for this example). To confirm - were you testing on an UWP project? > Universal Windows Platform -- activationContext is incomplete > ------------------------------------------------------------- > > Key: CB-10653 > URL: https://issues.apache.org/jira/browse/CB-10653 > Project: Apache Cordova > Issue Type: Improvement > Components: Windows > Environment: Windows 10, Windows 10 Phone > Reporter: Adam Fourney > Assignee: Raghav Katyal > Priority: Minor > Labels: easyfix > Original Estimate: 2h > Remaining Estimate: 2h > > CB-8674 modified cordova-js-src/platform.js to capture the application's onactivated event, and record the details in the platform.activationContext instance. > Unfortunately, CB-8674 covers only a few of the 12 types of UWP activation events. As an example, if an app is activated by a Cortana voice command, the details are missed. See here for more details: https://msdn.microsoft.com/en-us/library/windows/apps/br212679.aspx > The proposed fix is to change: > var activationHandler = function (e) { > var args = e.detail.arguments; > var actType = e.detail.type; > platform.activationContext = { type: actType, args: args }; > cordova.fireDocumentEvent('activated', platform.activationContext, true); > }; > To be: > var activationHandler = function (e) { > platform.activationContext = utils.clone(e.detail); > platform.activationContext.args = e.detail.arguments; // Backwards compatibility > cordova.fireDocumentEvent('activated', platform.activationContext, true); > }; > This also means that platform.js should require("cordova/utils") -- 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