Add publish response function

Google cloud message hasn't been integrated yet