← Back to team overview

ubuntu-phone team mailing list archive

Push Notifications Beta, please help test.

 

The push notifications service beta
===================================

The push notifications service is nearly ready for prime time! Want to help
us test it? here is how:

What to expect
==============

A client side daemon that stays connected and gets notified every once in a
while

What to test

============

We will be sending more notifications than real image updates, and we will
post the log of sent notification to the mailing list. You should check
that for each sent notification you saw the popup and/or you have it in
your logs.

A successful notification will appear on your client as described here:

https://plus.google.com/+JohnLenton/posts/9Ds7XeicYPK

Currently the notification method of popups is transient (it merely
displays on the screen, and disappears after a fixed timeout, leaving
nothing behind), so you might not notice a notification that was shown. You
can tap the notification to open the system updates interface. (But you
won't get any updates, because readwrite image and us sending fake
notifications)

Besides that, we want to make sure we are not breaking in any spectacular
way (battery, cpu, etc).


Administrativia

===============

The launchpad project for the push client is at:

https://launchpad.net/ubuntu-push

You can talk to us on the mailing list:

https://launchpad.net/~ubuntu-push-devs

Or the irc channel

#ubuntu-touch @freenode

Contact __lucio__ or Chipaca

When reporting bugs, make sure to include the logs from
/home/phablet/.cache/upstart/ubuntu-push-client.log

How to install the push notifications client
============================================

Start with a pristine phone with a recent image of the 'trusty' or 'devel'
channel (e.g. version 250). If you've done things with your phone before
doing the below, and it fails, contact us
privately.


Ironically, after following the steps below your system will no longer be
able to be updated via system image updates until you reflash it (see the
section called "Cleaning Up", below).


With your phone connected over USB to your computer, in a terminal on your
computer,


desktop $ phablet-config writable-image

desktop $ adb shell

phone # apt-get update         # make sure your package lists are up to date
phone # apt-get install ubuntu-push-client

Now you should have the push client installed. To start it, do

phone # su - phablet

phone $ start ubuntu-push-client

you can track the logfile via

phone # tail -f /home/phablet/.cache/upstart/ubuntu-push-client.log

You're now running ubuntu-push-client!

Cleaning Up

===========

Cleaning up (so that system image updates work) unfortunately requires that
you re-flash your device:

desktop $ adb shell rm /userdata/.writable_image && ubuntu-device-flash
--channel=devel


Known Issues
============

Notifications emblem on launcher instead of transient popup

https://bugs.launchpad.net/unity8/+bug/1301400


Deep Sleep: not yet available

System updates will not work while the image is modified: that is why you
need to re flash your device to get it back to working condition.

Follow ups