Questions tagged [notifications]

A notification is a user interface element displayed to indicate an event has occurred.

A notification is a user interface element displayed to indicate an event has occurred.

Notifications typically occur in a designated area of an application's UI, such as an icon appearing in a status bar or an alert message.

15974 questions
95
votes
5 answers

How to get focus to a Chrome tab which created desktop notification?

I would like to implement same functionality as Gmail has nowadays. When new email arrives or new chat comes, notification popup appears and if you click it, the tab with Gmail gets focussed. I have this code: var n =…
Frodik
  • 14,986
  • 23
  • 90
  • 141
95
votes
17 answers

Get notification when NSOperationQueue finishes all tasks

NSOperationQueue has waitUntilAllOperationsAreFinished, but I don't want to wait synchronously for it. I just want to hide progress indicator in UI when queue finishes. What's the best way to accomplish this? I can't send notifications from my…
Kornel
  • 97,764
  • 37
  • 219
  • 309
94
votes
6 answers

Easiest CSS for "red notification badge" with count

I need to show the popular red notification indicator with count such as the one shown below. Getting something that looks nice cross browser seems tricky. For example, different browsers seem to treat paddings differently, resulting in weird…
meow
  • 27,476
  • 33
  • 116
  • 177
91
votes
3 answers

catch on swipe to dismiss event

I'm using an android notification to alert the user once a service is finished (success or failure), and I want to delete local files once the process is done. My problem is that in the event of failure - I want to let the user a "retry" option. and…
Dror Fichman
  • 1,559
  • 1
  • 14
  • 16
90
votes
10 answers

Missing Push Notification Entitlement

I have received a warning mail from Apple after submitting the binary build. Missing Push Notification Entitlement - Your app appears to include API used to register with the Apple Push Notification service, but the app signature's entitlements…
Sasi
  • 1,666
  • 2
  • 24
  • 44
88
votes
6 answers

Updating iOS badge without push notifications

I have seen a few todo apps that update their app badges at midnight, always showing the correct number of due tasks. They do this without the use of Push Notifications - so my question is: how do they do this? Do they use local notifications - if…
fabian789
  • 8,348
  • 4
  • 45
  • 91
82
votes
12 answers

Custom notification layouts and text colors

My application shows some notifications, and depending on user preferences it might use a custom layout in a notification. It works well, but there is a small problem -- text colors. Stock Android and almost all manufacturer skins use black text…
Veeti
  • 5,270
  • 3
  • 31
  • 37
77
votes
5 answers

getIntent() Extras always NULL

I wrote a simple Android App that show a custom Notification like this: Context context = getApplicationContext(); NotificationManager manager = (NotificationManager)getSystemService(NOTIFICATION_SERVICE); Notification notification = new…
Magius
  • 1,991
  • 2
  • 12
  • 7
76
votes
3 answers

Prevent user from dismissing notification

Some apps have notifications which can´t be dismissed by swiping them away. How can I manage such behaviour?
Marian Klühspies
  • 15,824
  • 16
  • 93
  • 136
75
votes
5 answers

android pending intent notification problem

I have a alarm thing going on in my app and it launches a notification that then when pressed launched an activity. The problem is that when I create more than one alarm then the activity launched from the notification gets the same extras as the…
spagi
  • 1,457
  • 4
  • 16
  • 19
71
votes
5 answers

How to bring up list of available notification sounds on Android

I'm creating notifications in my Android application, and would like to have an option in my preferences to set what sound is used for the notification. I know that in the Settings application you can choose a default notification sound from a list.…
robintw
  • 27,571
  • 51
  • 138
  • 205
70
votes
3 answers

Cocoa Custom Notification Example

Can someone please show me an example of a Cocoa Obj-C object, with a custom notification, how to fire it, subscribe to it, and handle it?
mattdwen
  • 5,288
  • 10
  • 47
  • 61
67
votes
8 answers

Why do icons set with Notification.Builder.setSmallIcon in Android Lollipop show as a white square?

I have this code: Notification notif; // Build notification Notification.Builder notifBuilder = new…
66
votes
2 answers

Send desktop notifications in Chrome or Firefox from a closed web app?

My goal is to send Gmail-style desktop notifications in Chrome or Firefox from a web app (let's call it X) that is NOT currently open in the browser, without requiring the user to install an app or extension. It's okay if the user needs to grant…
65
votes
5 answers

Determine addAction click for Android notifications

I'm trying to use the new notifications interface. I've added 3 buttons to the notifications, and I want to save something to my database once each of them is clicked. The notification itself works well and is shown when called, I just don't know…