Internals of Intents

66 views
Skip to first unread message

Omkar Shetkar

unread,
Aug 20, 2012, 3:45:06 AM8/20/12
to web-inten...@googlegroups.com

Hi,

   Couple of days back I started learning/working on web intents. I am eager to know how it actually works? I mean, 
  • How the required/appropriate web intents are listed on client side?
  • How the input data is sent to target intent? What kind of protocols, standards etc. used?
  • How the target intent send the data back to source application?
Appreciate if you share any link/doc which explains these.

Regards,
Omkar

Paul Kinlan

unread,
Aug 20, 2012, 5:31:22 PM8/20/12
to web-inten...@googlegroups.com

Hi,

Sorry if this duplicates a reply, I am on a plane offline so this will be sent when I land.

Some comments inline.

On 20 Aug 2012 08:45, "Omkar Shetkar" <omkars...@gmail.com> wrote:
>
>
> Hi,
>
>    Couple of days back I started learning/working on web intents. I am eager to know how it actually works? I mean, 
> How the required/appropriate web intents are listed on client side?

The browser maintains a list of services that the user has granted or installed. The client application will call startActivity with the intent object and the browser will then art the process of showing the user the list of services that can fulfil the intent of the user.

> How the input data is sent to target intent? What kind of protocols, standards etc. used?

The basic flow is request, response. That is the client sends a service app some data, and the service sends it back to the client.  How the data is packaged is dependent on the action being invoked and the data type being sent.  Ideally an action of webintents.org/save would contain the protocol for data exchange for each type of content type.  The actual data is delivierd in the data payload of the Intent object,

> How the target intent send the data back to source application?

The target will call window.intent.post result with the data that is being sent back to the client.

> Appreciate if you share any link/doc which explains these.

Http://webintents.org should contain all the details.

We are in the process of improving all the actions documentation to make it more accurate and easier to implement.

>
> Regards,
> Omkar
>
> --
> You received this message because you are subscribed to the Google Groups "Web Intents discuss" group.
> To view this discussion on the web visit https://groups.google.com/d/msg/web-intents-discuss/-/MMz1lH484U8J.
> To post to this group, send email to web-inten...@googlegroups.com.
> To unsubscribe from this group, send email to web-intents-dis...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/web-intents-discuss?hl=en.

Reply all
Reply to author
Forward
0 new messages