A GCM based messaging & notifications plugin for WordPress for the interaction between users. This can is meant to enable chat between GCM enabled devices and dashboard.
-
Download the plugin to your wp-content/plugins folder
-
Activate the plugin on your Wordpress admin dashboard
-
Activate Android Cloud Messaging on Google Console
Find out how to do that here
-
Add your Google API Key
Go to your admin menu > WP GCM Chat then paste your API Key
-
Install the JSON-API plugin if you don't already have it.
-
Activate the GCM controller
Go to your admin menu > JSON-API then activate WP GCM
You are now ready to start using your Wordpress dashboard for chat between users or with a GCM enabled app.
Note: The app must have the project ID configured to the project ID you got from step 3 above.
Applying notifications in your other plugins is super easy. Simply use it as follows:
$reg_ids = array("user_id1", "user_id2");
$message = array("key" => "value");
send_push_notification($reg_ids, $message);