adding gcm functionality to demo console app