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 31B75DF6E for ; Wed, 17 Oct 2012 18:00:46 +0000 (UTC) Received: (qmail 50467 invoked by uid 500); 17 Oct 2012 18:00:46 -0000 Delivered-To: apmail-incubator-callback-dev-archive@incubator.apache.org Received: (qmail 50387 invoked by uid 500); 17 Oct 2012 18:00:45 -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 50376 invoked by uid 99); 17 Oct 2012 18:00:45 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Oct 2012 18:00:45 +0000 X-ASF-Spam-Status: No, hits=2.5 required=5.0 tests=FRT_ADOBE2,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of agrieve@google.com designates 209.85.214.175 as permitted sender) Received: from [209.85.214.175] (HELO mail-ob0-f175.google.com) (209.85.214.175) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Oct 2012 18:00:39 +0000 Received: by mail-ob0-f175.google.com with SMTP id eq6so7756495obc.6 for ; Wed, 17 Oct 2012 11:00:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:content-type :x-system-of-record; bh=U8LUOrnLiv2QbJyoUU+R+g827irI6ej+LpFNtLzgHVY=; b=oC7Gyc5L+qUxCfjGfKmQ+yAoWjGJBQw1QcfHh++uH4yI61CTHlqJORW8ECV4RlXD9A VymvvJsTW47QvWfGJA8Ue5kFl/DIelKZ+bVylOteabtA+uzaoFgfhpPvSG1EJPHxOsiq o0buPZpen2b+3OC3Dd//JptUXW59O/xgDeun0D/TNZ2ruq5dwA1lPY5i8p1wzqqg2YXk LOMhwshrSZr2b6yhAX6FXTMM2LYZ9CKb79u5IPOVs+c/qASp+wC82sRZca2nLDgSEYYA x29MWnozb9BpNbu2V0qn6aEmghwtkdKGwvPbaTmEWB9VAtcISb9llTuPwkTMfdI6856a 5j1Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:content-type :x-system-of-record:x-gm-message-state; bh=U8LUOrnLiv2QbJyoUU+R+g827irI6ej+LpFNtLzgHVY=; b=Qs2OvUTMTG0J6O0mV++s1uEYXlOf0cRuejeuSpkHeVCiyhX9cijoz5FL3wwvAHnD7J mfM/0fEx7mOBu3e8MCYp3EzcdsqS+SZ/GUv6TZJz5l4naxuHwfXswV8x8A7bPeDRqtNo unfU47fiGSDs5E93F+vUe8q8FXAr7CIqnSNvgIlmQK9ijyZkcyGJZWtIr2Fposu3cCL3 JTVDswdybvXNqHnrdCUFPQuTXRAVwcQH+2OAPqolMffGrwBFwDeGloaSAMQvnxHFOPpM A8qFUUBFUl8+KHyb89KRGpZee2bzva1+oED9y98cg7OgrVtsHK/O9JFvLf835U2ps4n/ VQVQ== Received: by 10.60.169.20 with SMTP id aa20mr16384966oec.105.1350496819021; Wed, 17 Oct 2012 11:00:19 -0700 (PDT) MIME-Version: 1.0 Sender: agrieve@google.com Received: by 10.182.27.68 with HTTP; Wed, 17 Oct 2012 10:59:58 -0700 (PDT) In-Reply-To: References: From: Andrew Grieve Date: Wed, 17 Oct 2012 13:59:58 -0400 X-Google-Sender-Auth: Xh5QwCQX4W8AHUPXshySxwOO9jg Message-ID: Subject: Re: Notice: Notification of work on Notifications To: callback-dev@incubator.apache.org Content-Type: multipart/alternative; boundary=bcaec54d49a62b08fb04cc450b87 X-System-Of-Record: true X-Gm-Message-State: ALoCoQkbq4Xb7bc2vD+uZyhCwRbLDmx4Nt+mFg4YpN5V+ak3nEx1mTjiZ8IPkrAwYyrQAWZwReS+wBj+an5IttKSbM0ap7ztXyTUM8uuHhJYEA7xrsBXehzo20gTqI9M58Cl/mfEBpiFumiznxul6PO0v/zz/Ck3j7fgXMaavP8FboHUnGU6Oq55UqmbrLPwnmKROtoE4Q3Ui9FEnYP/iAfEuVviXql+NQ== X-Virus-Checked: Checked by ClamAV on apache.org --bcaec54d49a62b08fb04cc450b87 Content-Type: text/plain; charset=ISO-8859-1 I think probably the best thing to do is to just always return false for webkitNotifications.checkPermission() on iOS when the app is in the foreground. Any custom UI we attempt will likely not appease developers. Let them implement their own in-app notification area if that's what they want. If the app *is* in the background, then return true for webkitNotifications.checkPermission(). On a related note, trying to implement a background app on iOS might be a fun experiment. Maybe a music player? On Wed, Oct 17, 2012 at 11:12 AM, Brian LeRoux wrote: > Toasts are delicious but what would the iOS analog be? (Guess we could > write a toasty impl for iOS which would be a cool feature.) > > On Wed, Oct 17, 2012 at 7:36 AM, Michal Mocny wrote: > > Do we want to ignore notifications when app is in foreground (call > > onerror), or use a different mechanism, like a custom growl/toast, or > > something? > > > > Either way, since the w3c spec does not specify how to delay local > > notifications or use push, there is nothing useful it can do on ios as > > is. I'll write some extension to schedule delayed notifications much > > like the existing LocalNotification plugin, but use the w3c spec > > wherever possible and with as much overlap with android as possible. > > > > Fun! > > > > On Tue, Oct 16, 2012 at 9:04 PM, Filip Maj wrote: > >> I can.. ? Not sure what your point is. > >> > >> On 10/16/12 5:56 PM, "Jesse" wrote: > >> > >>>You can't ring your doorbell from inside the house either ... > >>> > >>>On Tue, Oct 16, 2012 at 5:50 PM, Filip Maj wrote: > >>>> > >>>>>> - StatusBar Notifications: Intended for background services to > >>>>>>notify a > >>>>>> user to start some action (instead of just doing the action > without > >>>>>>users' > >>>>>> explicit intent) -- so what does this mean for iOS without > >>>>>>background > >>>>>> services? > >>>>> > >>>>>I *think* a fallback to local notification would be the way to handle > >>>>>this. (But implementation will probably uncover better.) > >>>> > >>>> I think this is what tripped me up on iOS a few weeks ago when I > >>>>attempted > >>>> this myself :) > >>>> > >>>> On iOS, you _cannot_ dispatch a local notification (to the > notification > >>>> center / status bar area) if the app is in the foreground. > >>>> > >>> > >>> > >>> > >>>-- > >>>@purplecabbage > >>>risingj.com > >> > --bcaec54d49a62b08fb04cc450b87--