Questions tagged [android-notifications]

A status notification adds an icon to the system's status bar (with an optional ticker-text message) and a notification message in the notifications window.

A notification is a user interface element that you display outside your app's normal UI to indicate that an event has occurred. Users can choose to view the notification while using other apps and respond to it when it's convenient for them.

Think of notifications as a news channel that alerts the user to important events as they happen or a log that chronicles events while the user is not paying attention. The user can expand the notification bar and by selecting the notification the user can trigger another activity. Notifications in Android are represented by the Notification class. To create notifications you use the NotificationManager class which can be received from the Activity via the getSystemService() method.

Useful links

4920 questions
2
votes
2 answers

How do I update Activity with intents passed via Notification

I have created a custom notification, but when i pause the activity with the home button and a notification arrives, i press the notification and it creates a new activity and doesnt resume the previews activity and when i press the back button it…
kobbycoder
  • 682
  • 2
  • 10
  • 33
2
votes
1 answer

Android, Custom Notification, Giving me always white Text

I am trying to make a custom notification bar, it works and all but when i test it in lollipop it's displaying the title and content text with white color text, it is good for kitkat because the notification bar is dark but not for lollipop. How can…
2
votes
1 answer

android notification only sound plays notification is not shown in notification drawer

i am trying to fire notification in at a particular time using AlarmManager and Notification manager. i am facing a strange problem. when notification is fired only sound plays but notification is not shown in the notification drawer. i got an error…
shiv garg
  • 761
  • 1
  • 8
  • 26
2
votes
1 answer

How to get all registered users from parse

We are developing an Android app. In the app we are using parse_server for push-notification We followed this. We save data like user_Name and user_Age in parse server. Now we need to get all User_Name. But we have only Get current mobile…
2
votes
2 answers

Show the Android Statusbar Notification in Particular date,

Help me to resolve this. Iam having Some Date in Local Database, Every day I Want to Check Database Date and Current Date in particular time,If database date is matching with current date Show notification in Statusbar I have added my code,…
Android Dev
  • 421
  • 8
  • 26
2
votes
0 answers

Android Parse.com push notification crash when app closed or app badge click

Followed the official guide and correctly receive push notification when app is opened. When the app is in background I receive the notification but when clicking on the badge it crash. The same when the app is closed,but I don't receive any…
2
votes
1 answer

How to convert an android Notification to a NotificationCompat

I am trying to read the Actions and RemoteInputs attached to each StatusBarNotification in a NotificationListenerService. However, I want to use the compatibility library for support, so I am trying to get everything as NotificationCompat.Action and…
dennisj
  • 83
  • 5
2
votes
2 answers

Katzer local notification not working - Cordova

I'm talking about this plugin katzer/cordova-plugin-local-notifications I've used it before few months back. Now I find it changed in many ways. So I tried to create a simple notification. I installed the plugin cordova plugins add…
AtanuCSE
  • 8,832
  • 14
  • 74
  • 112
2
votes
1 answer

Open APP on GCM notification

is it possible to open android app when I'll push notification to the mobile? I can't find anything about that, does anyone tried to do that? Is it even possible? Best Regards, Mateusz
crotoan
  • 173
  • 1
  • 13
2
votes
1 answer

PendingIntent Doesn't Keep Intent Extras After App is Killed

We're having an issue where the extras Bundle from a PendingIntent's Intent are not stored if the app is killed due to low memory. We create a notificiation: // ... final Intent intent = new Intent(this,…
2
votes
1 answer

How to enable or disable the Notification LED in Android?

How is it possible to enable or disable the Notification LED in Android? I want to set it default that the LED isn't shown anymore until I enable it again. So the LED is completely turned off.
asdafas
  • 51
  • 4
2
votes
1 answer

DownloadManager setVisibleInDownloadsUi not working

I'm using DownloadManager in order to download and it is working great. However when I set setVisibleInDownloadsUi(false) the progress notification is still displayed. Request request = new…
JY2k
  • 2,879
  • 1
  • 31
  • 60
2
votes
1 answer

Perform an action when a notification is canceled by the system or anything else but the user

Is there a way to perform an action when a notification is canceled by the system (by shutting down or restarting) or any other stuff but the user ? If so, how ? Or how can I implement onNotificationRemoved ?
Phantom
  • 968
  • 3
  • 14
  • 32
2
votes
1 answer

How to invoke cancelAllNotifications(String) method (in android.app.INotificationManager) by reflect

I was trying to cancel target app's notifications on Android, then I read the source code and noticed it may have some trickies to do that. I tried to call this by reflection. public abstract interface INotificationManager extends IInterface { …
2
votes
2 answers

Android multiple notification avoid blinking while updating

I am working on such application which is using multiple notification.where each notification have playpause icon which perform play/pause of music player. but there is odd behavior with updating that notifications which keep blinking while updating…
Mayur Raval
  • 3,250
  • 6
  • 34
  • 57
1 2 3
99
100