user4252099
user4252099

Reputation:

Notification service in Android

I'm developing an Android application, i have created one activity that show different messages (like a bacheca) in a listview.

To do this i get data from a database on a server, what that i must do is notify the user when a new information is inserted into the database.

Basically I want to pop up a notification on the screen (like when he gets a text message on whatsapp ), when the user presses on the notification initiates the activity containing the news ( bulletin board).

I would like to create a function like that of Facebook, ( I suppose a service ) that monitors the db and when you notice that there is a question notification starts.

How i can do this ?

Upvotes: 1

Views: 605

Answers (2)

techniqez
techniqez

Reputation: 135

Use GCM push notification Check this tutorial.

Upvotes: 1

Keshav
Keshav

Reputation: 577

The thing you are talking about is called Push Notification Service. There are many such service providers. One obvious here is Google's GCM. You can also look into Amazon SNS. https://aws.amazon.com/sns/

Upvotes: 0

Related Questions