Thank you Shawn.

One word of warning though: the query API's may change.
Mozilla is pushing for using DataStore API in Messaging.
For that, I proposed to separate the storage interface internally first:
https://github.com/sysapps/messaging/issues/89

And also, this older discussion, with a draft spec on how would
Messaging API look when using DataStore:
http://lists.w3.org/Archives/Public/public-sysapps/2013Aug/0077.html
https://etherpad.mozilla.org/un9XkdXeKh

We will have a discussion about DataStore tomorrow, and I expect some changes.

So I suggest you don't implement yet any storage and search related
interfaces yet.

Best regards,
Zoltan

On Mon, Nov 11, 2013 at 9:19 AM, Gao, Shawn <[email protected]> wrote:
> Intent to Implement System App Messaging API
>
> Summary: This implementation is going to add Messaging
> API(http://www.w3.org/2012/sysapps/messaging/). Let Javascript developers
> have ability to send/receive sms/mms and manage messages on Crosswalk.
> Managing features include find by filter, read and delete messages.
> Affected component: /xwalk/runtime
> Related feature: https://crosswalk-project.org/jira/browse/XWALK-53
> Target Release: M4
> Implementation details:
> There are 3 parts of implementation. SmsManager, MmsManager,
> MessagingManager. Each of the 3 is divided into 2 side, Java side and
> Javascript side.
> 1. SmsManager.
> 1) Send. Javascript side, when send api is called, create and push promise
> object to waiting list. If get send ok/failure message from Java side, found
> promise object by id and call resolve function. Java side, register intent
> for send ok/failure event and delivery ok/failure event. When gets send
> request from Javascript, call Android send sms api. Then receive the
> ok/failure event, and send these back to Javascript side.
> 2) Receive. Javascript side, register receive event handler. Java side,
> register receive event handler by Android Api. When sms comes, send message
> to Javascript side and call receive event handler.
> 2. MmsManager. Similar with SmsManager.
> 3. MessagingManager. Javascript side is similar to SmsManager
> 1) Find. Search sms/mms by ContentResolver.
> 2) Read. Read one  sms/mms by ContentResolver.
> 3) Delete. Delete sms/mms by ContentResolver.
>
>
>
> _______________________________________________
> Crosswalk-dev mailing list
> [email protected]
> https://lists.crosswalk-project.org/mailman/listinfo/crosswalk-dev
>
_______________________________________________
Crosswalk-dev mailing list
[email protected]
https://lists.crosswalk-project.org/mailman/listinfo/crosswalk-dev

Reply via email to