<commit_before># GCM4J [![Build Status](https://travis-ci.org/phonedeck/gcm4j.png?branch=master)](https://travis-ci.org/phonedeck/gcm4j)

## Overview

GCM4J is a simple, extensible, documented Google Cloud Messaging (GCM) client written in Java. Written and extensively used in production by [Phonedeck](http://phonedeck.com).

## Installation

The recommended way is to use the library as a Maven dependency.

```xml
<dependency>
  <groupId>com.phonedeck</groupId>
  <artifactId>gcm4j</artifactId>
  <version>1.0</version>
</dependency>
```


## Getting Started

### Creating Gcm and Sending the First Push Message

```java
// create a GCM4J client
Gcm gcm = new DefaultGcm(new GcmConfig()
  .withKey("your-gcm-key-from-google-apis"));
  
// assemble a request
GcmRequest request = new GcmRequest()
  .withRegistrationId("registration-id-reported-by-your-device")
  .withCollapseKey("sync")<commit_msg>Updated version in documentation<commit_after># GCM4J [![Build Status](https://travis-ci.org/phonedeck/gcm4j.png?branch=master)](https://travis-ci.org/phonedeck/gcm4j)

## Overview

GCM4J is a simple, extensible, documented Google Cloud Messaging (GCM) client written in Java. Written and extensively used in production by [Phonedeck](http://phonedeck.com).

## Installation

The recommended way is to use the library as a Maven dependency.

```xml
<dependency>
  <groupId>com.phonedeck</groupId>
  <artifactId>gcm4j</artifactId>
  <version>1.3</version>
</dependency>
```


## Getting Started

### Creating Gcm and Sending the First Push Message

```java
// create a GCM4J client
Gcm gcm = new DefaultGcm(new GcmConfig()
  .withKey("your-gcm-key-from-google-apis"));
  
// assemble a request
GcmRequest request = new GcmRequest()
  .withRegistrationId("registration-id-reported-by-your-device")
  .withCollapseKey("sync")
{'fraction_non_alphanumeric': 0.13479452054794522, 'fraction_numerical': 0.008767123287671232, 'mean_word_length': 5.006578947368421, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 19, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4749098', 'n_tokens_mistral': 648, 'n_tokens_neox': 609, 'n_words': 154}