ilhank
ilhank

Reputation: 148

android app working in the background for notification

I am developing an android app and having a problem on the notification part of the app. I am planning to push a notification whenever a new announcement is recorded to the database even if the user does not run the application. The scenario is like having a notification when a facebook user adds you as a friend. Even the user did not open the facebook app, the application ,in the background, shows a notification that says someone added you as a friend. In my app I am going to show announcements whenever an announcement is added to the database. For me the problem is how to make my app to work in the background to check whether there is an announcement newly added to the database.

Thanks in advance.

Upvotes: 0

Views: 596

Answers (1)

Mohamed Haseel
Mohamed Haseel

Reputation: 64

You can be writing your app as an android service..

Upvotes: 3

Related Questions