[Webpush] Urgency of Messages
Brian Raymor <Brian.Raymor@microsoft.com> Thu, 04 February 2016 20:29 UTC
Return-Path: <Brian.Raymor@microsoft.com>
X-Original-To: webpush@ietfa.amsl.com
Delivered-To: webpush@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1])
by ietfa.amsl.com (Postfix) with ESMTP id 489591AD0D3
for <webpush@ietfa.amsl.com>; Thu, 4 Feb 2016 12:29:31 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.002
X-Spam-Level:
X-Spam-Status: No, score=-2.002 tagged_above=-999 required=5
tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,
DKIM_VALID_AU=-0.1, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001]
autolearn=ham
Received: from mail.ietf.org ([4.31.198.44])
by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024)
with ESMTP id VD3xf6IkJ1VO for <webpush@ietfa.amsl.com>;
Thu, 4 Feb 2016 12:29:29 -0800 (PST)
Received: from na01-bn1-obe.outbound.protection.outlook.com
(mail-bn1on0764.outbound.protection.outlook.com
[IPv6:2a01:111:f400:fc10::764])
(using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits))
(No client certificate requested)
by ietfa.amsl.com (Postfix) with ESMTPS id DC9F21AD0D2
for <webpush@ietf.org>; Thu, 4 Feb 2016 12:29:28 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com;
s=selector1; h=From:To:Date:Subject:Message-ID:Content-Type:MIME-Version;
bh=VTrusW85KpZjGkHZ1eLKMwjLI9zfPuImwE/qeQb/dJI=;
b=PbW6bk5YeNXEfM3SowVugNK17OsGDq7Clf/HLXg+HkaknROdLQ34tDCywvI+WB8MCeCjkZIg2x0r+zAQbgLS+BbHyugbthlckugXaAnOaoZpvmQa04p2U6DsSUU21xW4RtFhQzfrZJ/cZt0WcGDilgppvzQru/TGZbkM4x5APug=
Received: from BY2PR0301MB0647.namprd03.prod.outlook.com (10.160.63.14) by
BY2PR0301MB0648.namprd03.prod.outlook.com (10.160.63.140) with Microsoft SMTP
Server (TLS) id 15.1.396.15; Thu, 4 Feb 2016 20:29:07 +0000
Received: from BY2PR0301MB0647.namprd03.prod.outlook.com ([10.160.63.14]) by
BY2PR0301MB0647.namprd03.prod.outlook.com ([10.160.63.14]) with mapi id
15.01.0403.016; Thu, 4 Feb 2016 20:29:07 +0000
From: Brian Raymor <Brian.Raymor@microsoft.com>
To: "webpush@ietf.org" <webpush@ietf.org>
Thread-Topic: Urgency of Messages
Thread-Index: AdFe9QCWSAtzWeHZRk65x3keYm8NZw==
Date: Thu, 4 Feb 2016 20:29:06 +0000
Message-ID: <BY2PR0301MB06471EF3FBB56556D5B1765183D10@BY2PR0301MB0647.namprd03.prod.outlook.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
authentication-results: ietf.org; dkim=none (message not signed)
header.d=none;ietf.org; dmarc=none action=none header.from=microsoft.com;
x-originating-ip: [2601:600:8000:5a8:a991:fd36:d5f3:19e]
x-ms-office365-filtering-correlation-id: a5731274-9b74-4581-4c05-08d32da1d4d0
x-microsoft-exchange-diagnostics: 1; BY2PR0301MB0648;
5:R5i9P2j3uIkg5khRgJoCDCE2TUErs62QJiJOwJJ2EzfDYWUviqf14Tyu5mEgSjnDQeShFACUAK6kPUGVfb52RoySAek+QffpDJdSHTWT97+osiX/5yUzcuLNPq2g7ox49TRpSwY57CaksyMueBgtGg==;
24:czU/DzomiKlfubToTFa0yHZNWDz52i5TqXL1h81VE6Wn7axl/XHUfBq9Izcl+G9OhBEgA31MYiG/SbVLKH+mLWXgyc6TKxv1rlA+FGy0SBA=
x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BY2PR0301MB0648;
x-microsoft-antispam-prvs: <BY2PR0301MB06488F482C564C7D82F1949583D10@BY2PR0301MB0648.namprd03.prod.outlook.com>
x-exchange-antispam-report-test: UriScan:;
x-exchange-antispam-report-cfa-test: BCL:0; PCL:0;
RULEID:(61425038)(601004)(2401047)(8121501046)(5005006)(3002001)(10201501046)(61426038)(61427038);
SRVR:BY2PR0301MB0648; BCL:0; PCL:0; RULEID:; SRVR:BY2PR0301MB0648;
x-forefront-prvs: 084285FC5C
x-forefront-antispam-report: SFV:NSPM;
SFS:(10019020)(6009001)(164054003)(33656002)(102836003)(54356999)(10400500002)(99286002)(450100001)(3280700002)(74316001)(6116002)(586003)(2900100001)(1220700001)(86612001)(5005710100001)(2501003)(15975445007)(229853001)(5004730100002)(40100003)(76576001)(5002640100001)(50986999)(5008740100001)(77096005)(3480700002)(3660700001)(10290500002)(10090500001)(2906002)(2351001)(107886002)(5003600100002)(92566002)(110136002)(122556002)(5001960100002)(11100500001)(189998001)(1730700002)(19580395003)(86362001)(87936001)(1096002)(3826002);
DIR:OUT; SFP:1102; SCL:1; SRVR:BY2PR0301MB0648;
H:BY2PR0301MB0647.namprd03.prod.outlook.com; FPR:; SPF:None; MLV:sfv; LANG:en;
spamdiagnosticoutput: 1:23
spamdiagnosticmetadata: NSPM
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-OriginatorOrg: microsoft.com
X-MS-Exchange-CrossTenant-originalarrivaltime: 04 Feb 2016 20:29:06.9808 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47
X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY2PR0301MB0648
Archived-At: <http://mailarchive.ietf.org/arch/msg/webpush/eK3duGKlleL88k0ZceuECsmRIGQ>
Subject: [Webpush] Urgency of Messages
X-BeenThere: webpush@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Discussion of potential IETF work on a web push protocol
<webpush.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/webpush>,
<mailto:webpush-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/webpush/>
List-Post: <mailto:webpush@ietf.org>
List-Help: <mailto:webpush-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/webpush>,
<mailto:webpush-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 04 Feb 2016 20:29:31 -0000
https://github.com/webpush-wg/webpush-protocol/issues/28 There's been a long conversation in this issue that I'd like to bring to the mailing list for broader discussion and closure. Questions: a) Is there rough consensus to support this feature in the protocol? b) If so, then what is the shape of the design? I believe that there's general agreement that we need the following capabilities for an application server publishing a message to the push service: * 0 | "high" | "urgent" - send urgent message immediately and wake up the user agent * 1 | "normal" - send opportunistically - send prior to expiration if no urgent messages are queued * 2 | "low" | "non-urgent" - send opportunistically - allow to expire if no urgent messages are queued Multiple variations for the mapping have been suggested. I don't have a strong feeling for whether the mapping should be 0 or "high" or "urgent". GCM uses "high" and "normal" in its Priority field. APNS uses 10 and 5. In addition, not everyone favors the "Nice" header field name unless they're quite fond of Unix. Perhaps we could rename it to "Urgency". I would prefer to avoid "Priority". As I remarked in the issue: Priority is too overloaded a term, since it may refer to: * Message Ordering * Urgency ("Niceness") as in "Is it urgent enough to wake the device and burn the battery?" Then there's another question of whether there also needs to be a public protocol between the user agent and push service to either hint at the device state or apply an urgency "filter": Benjamin writes: >> @costinm Do you plan on introducing additional flags for the client when making a >> notification request that conveys all this additional knowledge (on wifi, 'charging', etc) >> to the Push service? Is it the right place for the Push service to choose how to optimize >> delivery, or should the client flag indicate what level of urgency it wants notifications for? Costin responds: > GCM uses a binary protocol for UA-push service, which already has the flags ( it wouldn't work > otherwise for the deep sleep for example ). I think common ones could be added to webpush > spec, but with lots of care - we don't want the UA to send notifications too often (for example > on state change). > A start would be to define a header for the 'monitor' request, with a list of flags, and > define common ones ( charging, network type ). I'm curious what the working group thinks about these proposals. Are there alternative approaches that we should consider? Thanks, ...Brian
- [Webpush] Urgency of Messages Brian Raymor
- Re: [Webpush] Urgency of Messages Martin Thomson