W3C home > Mailing lists > Public > public-web-intents@w3.org > January 2013

Re: service registration using shim

From: Paul Kinlan <paulkinlan@google.com>
Date: Wed, 9 Jan 2013 00:27:26 +0000
Message-ID: <CADGdg3AX8Rg-TSi04TMt1bH=Dd+JoXQ0tMC-tqZxpfHZREvBqQ@mail.gmail.com>
To: Mark Volkmann <r.mark.volkmann@gmail.com>
Cc: James Hawkins <jhawkins@google.com>, WebIntents <public-web-intents@w3.org>
You just embed webintents.org/webintents.min.js and that will do the work
required.

If you mean what loads the page when a client requests to find a service to
use then that is the same shim file in the client app, it then exposes an
API on window.navigator called startActivity which you would invoke in
response to a user action, that then engages the picker dialog for the user
to launch the service app.

P
On 9 Jan 2013 00:23, "Mark Volkmann" <r.mark.volkmann@gmail.com> wrote:

> What causes the HTML page for the service that embeds the shim and
> contains the intent tag to be loaded?
>
> ---
> R. Mark Volkmann
> Object Computing, Inc.
>
> On Jan 8, 2013, at 5:01 PM, Paul Kinlan <paulkinlan@google.com> wrote:
>
> Hi,
>
> The shim that is embedded in the page reads the HTML in the head element
> looking for the intent tag.  Once it finds one it parses the relevant data
> out of it and passes the registration information via an iframe to
> webintents.org where it is stored locally in the localStorage.
>
> P
>
>
> On Tue, Jan 8, 2013 at 1:15 PM, James Hawkins <jhawkins@google.com> wrote:
>
>> +Paul can probably answer that.
>>
>> Thanks,
>> James
>>
>>
>> On Tue, Jan 8, 2013 at 9:34 AM, Mark Volkmann <r.mark.volkmann@gmail.com>wrote:
>>
>>> I understand how to add an intent tag to the .html file of a service.
>>> What is it that reads the service .html files to extract the information
>>> from the intent tags? I'm missing how the service registration actually
>>> occurs.
>>>
>>> --
>>> R. Mark Volkmann
>>> Object Computing, Inc.
>>
>>
>>
>
>
> --
> Paul Kinlan
> Developer Advocate @ Google for Chrome and HTML5
> Subscribe to my developer newsletter: https://tinyletter.com/PaulKinlan
> G+: http://plus.ly/paul.kinlan
> t: +447730517944
> tw: @Paul_Kinlan <http://twitter.com/paul_kinlan>
> LinkedIn: http://uk.linkedin.com/in/paulkinlan
> Blog: http://paul.kinlan.me
>
>
Received on Wednesday, 9 January 2013 00:27:53 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 9 January 2013 00:27:54 GMT