Re: Mechanism to determine whether location is currently being shared

Le jeudi 03 mars 2011 à 13:01 +0000, Andrei Popescu a écrit :
> > A developer recently asked me for some way to tell, in the
> > getCurrentPosition callback, whether the permission grant was due to
> > the user actually seeing the permissions prompt and clicking "Allow"
> > (or the equivalent), or if it was an automatic grant due to the user
> > previously granting the site permanent access to their location.  This
> > can alternately be cast as a request to know if the user has already
> > granted permission to grab their location, such that a call to
> > getCurrentPosition() will return a position without prompting the
> > user, or not.
> >
> 
> I see. There is this Feature Permissions spec:
> 
> http://dev.w3.org/2006/webapi/WebNotifications/publish/FeaturePermissions..html
> 
> but it hasn't been updated in a while. Do you happen to know what is
> the status with that spec? It looks like it would solve your problem?

FWIW, this spec has been taken up by the DAP Working Group (after having
first been started in Web Notifications); see for instance recent
discussions around it at
http://lists.w3.org/Archives/Public/public-device-apis/2011Mar/0110.html

Dom

Received on Wednesday, 23 March 2011 09:42:06 UTC