On 15/03/13 18:15, Ben Francis wrote:
> Hi there,
>
> I'd like to propose some early ideas for a new API which provides a search
> index for the content of a web app where that index can be queried not only
> by the app itself, but by other apps which have the required permission.
>
> One use case of this API would be for a web app to be able to provide a
> unified search interface for the content stored across multiple apps on a
> device, but using a standard interface which would provide an open way for
> apps to opt-in to being search "providers".
>
> At the platform level you could think of this API as a kind of client-side
> Open Search[1].
>
> For the B2G project this would allow for the implementation of an
> "awesomebar" for the whole OS, which can search across content stored in
> multiple apps. This could be similar to Spotlight in iOS [2] and the Google
> search bar on the homescreen of Android 4.x (an interface to Google Now
> [3]) which both allow the user to search local data across apps on the
> device.
>
> [...]
Hi Ben,
Thank you for this message. This is a kind of problem we have been
looking at recently. It is currently not clear how we could solve it but
we have two ideas that we could use:
- some kind of data-source mechanism where apps can register as
providing a data-source of some sorts and other app would ask to access it;
- an API to communicate between two applications:
https://wiki.mozilla.org/WebAPI/Inter_App_Communication
Those two ideas are at a very early stage, the former one doesn't even
have something written down. But I believe both of them should help
solving your use cases. It wouldn't be as simple as a "Search API" but
they should give you the tools you need.
The benefits of the former is that it might help solving the problem we
have with some APIs that contain data like SMS API. We could simply make
the SMS database a data-source and allow some applications to access it.
The later proposition is more generic and we might or might not need it
anyway. However, it goes with serious security concerns (you don't want
any app to access any other app data).
Thanks,
--
Mounir