Skip to content

⛔️ DEPRECATED - A very simple simulation of a server sending GCM messages.

Notifications You must be signed in to change notification settings

CarlOhlsson/gcmTemplateServer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

What is it?

This program will send ONE simple GCM message to your app providing you followed the setup guide below. It supports both topic and device unique messages. The program also gives you the ability to send notification content with GCM instead of implementing this in the app.

This program was created by modifying Google's own startup template that can be found by following the link below. https://developers.google.com/cloud-messaging/android/start

Please note

This is not a server, only a program that is required to be run each time you want to send a message. The only function for this program is to test your app while under development.

Setup

1: Find your API key in your google developer environment and put this in the API_KEY variable.

https://console.developers.google.com/

2: Enter the topic your app is listening to or the devices token

Example topic: /topics/Foo

Example token: xxxxxxx:xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

3: Make sure you are using the JSONObject library

Can be easily downloaded with Maven in IntelliJ.

Project Structure -> Libraries -> New - From Maven ... -> Enter: org.json:json:20140107 -> OK

About

⛔️ DEPRECATED - A very simple simulation of a server sending GCM messages.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published