update push api to listen on app pause and resume events