Add support for passing application name and a registration token