account-polld

Differences between revisions 15 and 16
Revision 15 as of 2014-08-11 19:03:15
Size: 3287
Editor: sergiusens
Comment:
Revision 16 as of 2014-08-26 00:15:43
Size: 3585
Editor: sergiusens
Comment:
Deletions are marked like this. Additions are marked like this.
Line 61: Line 61:
 * The push client calls the account-polld dbus interface to poll, the same can be accomplished manually by issueing {{{ gdbus call --session -d com.ubuntu.AccountPolld -o /com/ubuntu/AccountPolld -m com.ubuntu.AccountPolld.Poll }}} a {{{ Done }}} signal should be sent once the pollling is done.

Dependents/Clients

  • ubuntu-push-client
  • online accounts

Test Plan

Definitions

SUT
System Under Test

Prereqs

  • Account on facebook, twitter and gmail.
  • Webapps for facebook, twitter and gmail installed

Plan

  • Install image on SUT: ubuntu-device-flash --channel ubuntu-touch/devel-proposed

  • Run citrain device-upgrade [silo]

The scope of responsibility for account-polld is to limit itself to the enabled accounts from online accounts (the accounts with the Notifications toggle set).

(i) facebook notifications won't work without a token override until backend work for the account completes. Generate a token at https://developers.facebook.com/docs/graph-api/reference/v2.0/user/notifications by going to the graph explorer and enabling the  manage_notifications  extended permission.

(i) Notifications from before account-poll starts for twitter are not shown, only the ones since daemon start.

(i) Notifications are not displayed if Unity8 marks the target application as in focus. For account-polld's responsibility; if the webapp is closed, it shall trigger notification; if the target webapp is open and it is of dubios consideration if the notifiction should be triggered, check with the ubuntu-push-client.

Enable

  • twitter:

    • Enable notifications from online accounts for twitter.
    • Mentions and direct messages should be notified (polling is usually 5 minutes)
  • gmail:

    • Enabled notifications from online accounts for gmail.
    • Unread messages falling into gmail's category personal from a span of ~24hs will be collected and notified.

    • token can be overriden by setting the  ACCOUNT_POLLD_TOKEN_GMAIL  session environment variable and restarting  account-polld .

  • facebook

    • Enabled notifications from online accounts for facebook..
    • Unread messages will be collected and notified.
    • token can be overriden by setting the  ACCOUNT_POLLD_TOKEN_FACEBOOK  session environment variable and restarting  account-polld .

Additional information

  • Monitor $HOME/.cache/upstart/account-polld.log for additional information. If there are no logs, it probably means no accounts were enabled.

  •  dbus-monitor --session interface=com.ubuntu.Postal  to verify that messages are indeed sent to the  ubuntu-push-client  which is the scope of responsibility of  account-polld .

  • To easily set the envvars you could use an upstart override file and do something like  echo env ACCOUNT_POLLD_TOKEN_FACEBOOK=[your token] > ~/.config/upstart/account-polld.override 

  • The push client calls the account-polld dbus interface to poll, the same can be accomplished manually by issueing  gdbus call --session -d com.ubuntu.AccountPolld -o /com/ubuntu/AccountPolld -m com.ubuntu.AccountPolld.Poll  a  Done  signal should be sent once the pollling is done.

Process/Merges/TestPlans/account-polld (last edited 2016-04-27 12:58:09 by localhost)