Re: [Webpush] Urgency of Messages

Martin Thomson <martin.thomson@gmail.com> Fri, 05 February 2016 11:22 UTC

Return-Path: <martin.thomson@gmail.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 DCF671A21B7 for <webpush@ietfa.amsl.com>; Fri, 5 Feb 2016 03:22:00 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2
X-Spam-Level:
X-Spam-Status: No, score=-2 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=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 d2aCO6I_Ydll for <webpush@ietfa.amsl.com>; Fri, 5 Feb 2016 03:21:59 -0800 (PST)
Received: from mail-io0-x22e.google.com (mail-io0-x22e.google.com [IPv6:2607:f8b0:4001:c06::22e]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id AB4AE1A21B4 for <webpush@ietf.org>; Fri, 5 Feb 2016 03:21:59 -0800 (PST)
Received: by mail-io0-x22e.google.com with SMTP id 9so125592331iom.1 for <webpush@ietf.org>; Fri, 05 Feb 2016 03:21:59 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=ldvpRlRMAQmoyAggrIHqlk96LxuD4ktYlHqVLBMYLdE=; b=mNSLzQy5rhN5M9xbtcxXN25xKRs0qC/OmsMrkbZtvzCQW0jfqVGBKfvoJewnTu6zQm exaOxNebZPPgtXedJKhUTVjRO9KLkAN6qyKGcQH266nCoHLT++lzG6SifxYZfUMn9umm BSsYAGheGDDLaQDnH2HOd0gLZ3MxgHiMop9OZFLIyDM9JAX98gLk4hxv+GdlNuLW0po4 q7NIAYxoy1alWAuCiw/I32MmwF+i26NLczWvRL+qpT1QqDuV3W3rxgiX7TJ4NgKkuo4w q9RM/K5yLjhpIfihl+iLRcFhciF3bYtVe7CDgF9PeORANcP4UoNLXa3pfBzTT0p8Spbp pxtQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=ldvpRlRMAQmoyAggrIHqlk96LxuD4ktYlHqVLBMYLdE=; b=T7hTuC86vWlImJdNH2brPcL6zN3GaITZffxe9xEn/23QNzYpfwXLwQEQiR2uhD7JTN 1rEofRBCVW7QQRcXuetUBaKfJUTBRz/x5E2FmRGMyMtpwhbMo0S2pflaZdcy4sn485mO 9tULjaOU1nDodHSIBFUL10S3656vbQGw3bl+K4gaD9ABWLK01ChW8NkWbuosXcm/PYps X5gXSWwzUnziksbPtMcM2cCt5UiLPB+oHw9o7IFm63i12Oi+DoZqYs1aB+s/CCRj1NK0 Vx8bSQWhQ7l911I1ZufUGn9tL+TQERc4Ye73sd80DcS9X0MKYnym/Z0Mvzs532pWGD8+ 2N5w==
X-Gm-Message-State: AG10YOT4Ccm19DwhZ0lMuFDd1XpopeloZQlpxmrYEmWmQxiOlX2XRFXBARc050/ymRbeAKYHRWWvqhyStD5k+w==
MIME-Version: 1.0
X-Received: by 10.107.33.14 with SMTP id h14mr13200761ioh.108.1454671319057; Fri, 05 Feb 2016 03:21:59 -0800 (PST)
Received: by 10.36.53.79 with HTTP; Fri, 5 Feb 2016 03:21:58 -0800 (PST)
In-Reply-To: <BY2PR0301MB06471EF3FBB56556D5B1765183D10@BY2PR0301MB0647.namprd03.prod.outlook.com>
References: <BY2PR0301MB06471EF3FBB56556D5B1765183D10@BY2PR0301MB0647.namprd03.prod.outlook.com>
Date: Fri, 5 Feb 2016 22:21:58 +1100
Message-ID: <CABkgnnUOVdVfRAcBtYmpgr49RhZY85f-MEEJaxWfsEEuHRNMKA@mail.gmail.com>
From: Martin Thomson <martin.thomson@gmail.com>
To: Brian Raymor <Brian.Raymor@microsoft.com>
Content-Type: text/plain; charset=UTF-8
Archived-At: <http://mailarchive.ietf.org/arch/msg/webpush/5xwdpftwpGsypHl8Vvbb1gq5N7w>
Cc: "webpush@ietf.org" <webpush@ietf.org>
Subject: Re: [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: Fri, 05 Feb 2016 11:22:01 -0000

I think that you have the right idea here, picking urgency.

On 5 February 2016 at 07:29, Brian Raymor <Brian.Raymor@microsoft.com> wrote:
>> 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?

I think that it would be better to simply have the client indicate the
urgency of the messages it wants to receive.  That way, there's a
clear understanding of what it will receive without being subject to
some unspecified algorithm in the push service.

We can make some suggestions perhaps.  For instance:

  On power and wifi: urgency = very-low
  On one but not both: urgency = low
  On neither: urgency = normal (or absent)
  Low battery: urgency = high

Setting a value indicates that the UA wants "normal" delivery of
messages at that urgency.  Higher urgency values than what was
advertised would get accelerated delivery.  Lower values would get
stored and delivered later.

We can also try to set some guidelines around what each urgency means:

  high = incoming phone call, time-sensitive alert
  normal = chat message, first email notification, calendar message
  low = subsequent email notification
  very-low = advertising

That might help establish some consistency between applications in
terms of what they use, so that user agents can set values with some
confidence that they will be respected.  I tried that with -nice, but
it could definitely be improved.