Added support for GCM

Fixed issues with empty response