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.

15068 questions
424
votes
8 answers

Chrome desktop notification example

How does one use Chrome desktop notifications? I'd like that use that in my own code. Update: Here's a blog post explaining webkit notifications with an example.
Sridhar Ratnakumar
  • 68,948
  • 61
  • 139
  • 172
217
votes
13 answers

How to send parameters from a notification-click to an activity?

I can find a way to send parameters to my activity from my notification. I have a service that creates a notification. When the user clicks on the notification I want to open my main activity with some special parameters. E.g an item id, so my…
Vidar Vestnes
  • 41,116
  • 28
  • 81
  • 97
212
votes
21 answers

Android Push Notifications: Icon not displaying in notification, white square shown instead

My app generates a notification, but the icon I set for that notification is not being displayed. Instead, I get a white square. I have tried resizing the png of the icon (dimensions 720x720, 66x66, 44x44, 22x22). Curiously, when using smaller…
207
votes
19 answers

Determine on iPhone if user has enabled push notifications

I'm looking for a way to determine if the user has, via settings, enabled or disabled their push notifications for my application.
Kevin
  • 3,500
  • 4
  • 26
  • 33
200
votes
5 answers

How to display count of notifications in app launcher icon

samsung galaxy note 2 android version 4.1.2 I know that this question was asked before and the reply was not possible How to display balloon counter over application launcher icon on android Nevertheless yesterday I updated the facebook app and…
Waqleh
  • 8,454
  • 8
  • 61
  • 91
177
votes
12 answers

Android: remove notification from notification bar

I have created an application and with an event I manage to add notification in android notification bar. Now I need sample how to remove that notification from notification bar on an event ??
Nezir
  • 5,971
  • 12
  • 46
  • 72
177
votes
6 answers

Notification click: activity already open

I have an application with notifications that open a certain activity if I click them. I want that, if I click the notification and the activity is already opened, it's not started again, but just brought to front. I thought I could do it with the…
PX Developer
  • 7,655
  • 6
  • 38
  • 66
176
votes
10 answers

How to play an android notification sound

I was wondering how I could play a notification sound without playing it over the media stream. Right now I can do this via the media player, however I don't want it to play as a media file, I want it to play as a notification or alert or ringtone.…
ninjasense
  • 13,382
  • 17
  • 71
  • 91
172
votes
9 answers

NotificationCompat.Builder deprecated in Android O

After upgrading my project to Android O buildToolsVersion "26.0.1" Lint in Android Studio is showing a deprecated warning for the follow notification builder method: new NotificationCompat.Builder(context) The problem is: Android Developers update…
GuilhermeFGL
  • 2,660
  • 2
  • 11
  • 31
170
votes
4 answers

Building a notification system

I am at the start of building a Facebook style notification system for our page (social gaming type) and I'm now researching what would be the best way to design such system. I'm not interested in how to push notifications to the user or anything…
Jan Hančič
  • 49,796
  • 15
  • 87
  • 97
155
votes
24 answers

How to fix "no valid 'aps-environment' entitlement string found for application" in Xcode 4.3?

I've been trying very very hard to create a simple simple iOS app which can recieve push notifications. My only reason for doing this is to establish a procedure for some other team members to use, and have not been able to find an up to date,…
jwl
  • 10,418
  • 13
  • 48
  • 86
147
votes
5 answers

How do I update the notification text for a foreground service in Android?

I have a foreground service setup in Android. I would like to update the notification text. I am creating the service as shown below. How can I update the notification text that is setup within this foreground service? What is the best practise…
Luke
  • 5,895
  • 11
  • 54
  • 84
147
votes
9 answers

Actionbar notification count icon (badge) like Google has

Is there a android standard badge or method to show action bar notification icon with a count like on Google examples? If not, then what is the best way to make it? I'm new to android, please help.
AndrewS
  • 6,991
  • 8
  • 30
  • 46
136
votes
7 answers

Android notification doesn't disappear after clicking the notifcation

If got some issues with a notification I want to show in the notification bar. Although I set the notification flag to Notification.DEFAULT_LIGHTS & Notification.FLAG_AUTO_CANCEL the notification doesn't disappear after clicking it. Any ideas what…
Flo
  • 26,717
  • 14
  • 82
  • 124
126
votes
12 answers

Android notification is not showing

I need a program that will add a notification on Android. And when someone clicks on the notification, it should lead them to my second activity. I have established code. The notification should be working, but for some reason it is not working. The…
Choudhury A. M.
  • 4,931
  • 3
  • 18
  • 21
1
2 3
99 100