Ranjitsingh Chandel
Ranjitsingh Chandel

Reputation: 1489

If application stop, Then Notification not display in Android

I am creating simple application for Notification. It is showing notification properly But my main question is,

Why Notification not display when application stop? Any special settings for that. Please help me.

Application stop from: 1. Setting/application/manage application 2. selecting application 3. force stop

this way i stop my application Thank you!

Upvotes: 0

Views: 959

Answers (1)

Rushabh Patel
Rushabh Patel

Reputation: 3080

You need to go for Service development for notification for your android application. You need to just start the service in your android application then even though your app stops, your notification will not affect. It will continuous in running mode at background.

Here are two examples from you can learn easily:

Android Service example-1

Android Service example-2

Upvotes: 1

Related Questions