add client code for push notifications