Return-Path: X-Original-To: apmail-incubator-callback-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-callback-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3E8E8D7D8 for ; Wed, 24 Oct 2012 07:53:26 +0000 (UTC) Received: (qmail 71714 invoked by uid 500); 24 Oct 2012 07:53:26 -0000 Delivered-To: apmail-incubator-callback-dev-archive@incubator.apache.org Received: (qmail 71609 invoked by uid 500); 24 Oct 2012 07:53:25 -0000 Mailing-List: contact callback-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: callback-dev@incubator.apache.org Delivered-To: mailing list callback-dev@incubator.apache.org Received: (qmail 71594 invoked by uid 99); 24 Oct 2012 07:53:25 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 24 Oct 2012 07:53:25 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of matt@amxmobile.com designates 209.85.214.47 as permitted sender) Received: from [209.85.214.47] (HELO mail-bk0-f47.google.com) (209.85.214.47) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 24 Oct 2012 07:53:19 +0000 Received: by mail-bk0-f47.google.com with SMTP id jk7so57322bkc.6 for ; Wed, 24 Oct 2012 00:52:58 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:content-type:message-id:mime-version:subject:date:references :to:in-reply-to:x-mailer:x-gm-message-state; bh=hhFUrvKM3DNMAONIj3oDUXcrwCV9E9CQxAOj65CQtMI=; b=LMyxuX2dyCBBYsO4IagB5BTbivZiYBGTqNlsSLTmR+j2knZOH1KKX+GWVpEJ4e4ooO fCvS/vwD5QLnmLIqjhMGx/GqBGGmngy0fj9+t2CJWXL0vNYGcj3TNLSPtUdJEjt93kGG Bd3JH7eDv9WieiVaIa7ehpABoFHAucC+thNyDZrWr9aw4f5TuwlayVPSzfs6b1A9oea9 T8jcGVcs8zv0pdq5fVlZ0aN+FNaVOBZ+qM37VqW/Kr16FjHh54TWpIJw0co7QosZQZB8 5k+DzpwpDirH+EC32hTXK8J+cU6qyQ3KQulcYcHyEgs3fcePowatNHroX1owzasu6kwt NJTw== Received: by 10.204.5.151 with SMTP id 23mr4600986bkv.3.1351065178110; Wed, 24 Oct 2012 00:52:58 -0700 (PDT) Received: from [192.168.0.4] (dsl-217-155-39-253.zen.co.uk. [217.155.39.253]) by mx.google.com with ESMTPS id fm5sm7121771bkc.5.2012.10.24.00.52.51 (version=SSLv3 cipher=OTHER); Wed, 24 Oct 2012 00:52:54 -0700 (PDT) From: Matt Baxter-Reynolds Content-Type: multipart/alternative; boundary="Apple-Mail=_0F69C1EC-CB5B-4460-A86C-167F281BBAF7" Message-Id: <3F575814-03B3-4519-840C-AAFD2CF4C762@amxmobile.com> Mime-Version: 1.0 (Mac OS X Mail 6.1 \(1498\)) Subject: Re: Device UUID storage Date: Wed, 24 Oct 2012 08:52:16 +0100 References: To: callback-dev@incubator.apache.org In-Reply-To: X-Mailer: Apple Mail (2.1498) X-Gm-Message-State: ALoCoQl7TIe8eWVtDxT1s4pX1PAgqsPV2B4jb49YvwfKDSSjyexEx80nAD8/4EKsvT17RH8yuWvX X-Virus-Checked: Checked by ClamAV on apache.org --Apple-Mail=_0F69C1EC-CB5B-4460-A86C-167F281BBAF7 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=iso-8859-1 Hi, Sorry to jump in without background, but on Win8 I think it would make = more sense to use the built-in hardware ID that WinRT provides, as = below, rather than using createUUID to demand-create a device ID. (The = hardware ID would obviously survive a localStorage reset.) private string GetHardwareId() { var token =3D HardwareIdentification.GetPackageSpecificToken(null); var hardwareId =3D token.Id; var dataReader =3D = Windows.Storage.Streams.DataReader.FromBuffer(hardwareId); byte[] bytes =3D new byte[hardwareId.Length]; dataReader.ReadBytes(bytes); return BitConverter.ToString(bytes); } I've created a Jira item to this effect.=20 https://issues.apache.org/jira/browse/CB-1702 Hopefully I'm not missing something! As I suggest, I'm new to any prior = discussion. Thanks, Matt = --------------------------------------------------------------------------= ------------------------------------------------------------- Matt Baxter-Reynolds (@mbrit) Independent software development consultant, speaker, author, and = trainer. Windows 8 Specialist.=20 Read my blog at ZDNet. Talk to me on Twitter. . Coming December 2012: "Programming Windows Store Apps with C#" = (O'Reilly) Come along to the London Windows Store Apps Developer Group On 24 Oct 2012, at 05:30, Mingfeng Wang = wrote: > Hey, >=20 > Now the Device UUID is saved in localStorage of html5 for Windows8, = so > it is the same if all the projects are in the same domain. > I want to use a file instead of localStorage, is it necessary? And > where can I save this file? >=20 > Mingfeng --Apple-Mail=_0F69C1EC-CB5B-4460-A86C-167F281BBAF7--