Skip to content

RomanSaldan/Homework_L19

Repository files navigation

Homework_L19

<title>Hello. Its homework lesson 19 project working with Google Cloud Messeges.</title>
This application receive your push messages and store it to list view.
![alt tag](https://raw.github.com/RomanSaldan/Homework_L19/master/app/src/main/res/drawable/background_image.png)
API:

1. To display stored notification click on it in listview of notifications.
2. If you want to delete some of stored notifications you can do it by getting context menu on this notification in list and select "Delete" option.
3. You can also delete all of stored notifications by getting context menu on any of stored notifications and select "Delete all" option.
4. For sending push notification use next JSON code snippet

{
    "registration_ids" : ["YOUR_DEVICE_KEY"],
    "data" : {
        "message" : "notification_message",
        "title" : "notification_title",
        "subtitle" : "notification_subtitle",
        "tickerText" : "notification_ticker",
        "sound" : "on/off",
        "vibration" : "on/off"
    }
}
When you build push notification dont forget to set next options:
"Authorization" - "key=AIzaSyDimJbJ2ZL3nOkoA13zuFgMpJ2NwtgGYVs"
"Content-Type" - "application/json"

You can download apk from DropBox: download

About

Homework for lesson 19.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages