account-polld
3287
Comment:
|
3585
|
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. |
Test plan for component: account-polld
Component Checklist: https://wiki.ubuntu.com/Process/Merges/Checklists/Common
Trunk URL: lp:account-polld
Ubuntu Package URL (LP): http://launchpad.net/ubuntu/+source/account-polld
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).
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.
Notifications from before account-poll starts for twitter are not shown, only the ones since daemon start.
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)