Adding push permissions and server registration