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
28
votes
4 answers

Mapping SignalR connections to users

Consider a web application like facebook, that can send realtime notifications to users. What is the best way, using asp.net SignalR, to keep track of which connection ids belong to which user, even if the user disconnects, or reconnects later ?
Daniel Hursan
  • 839
  • 1
  • 9
  • 19
27
votes
2 answers

Persistent service icon in notification bar

I am trying to figure out how to show that my service is running with a persistent notification icon. Many examples I've found only send a dismissable message to the notification bar. I wanted a persistent icon that when you pull down the…
Nick
  • 9,285
  • 33
  • 104
  • 147
27
votes
1 answer

Firebase Cloud Messaging - Target to single device not visible in Firebase console

I am trying to send notification to a single device in android , but when i am doing it from Firebase console , it's not visible in Firebase new view . Could anyone help me from where do i need to send notification to a single device ?
27
votes
4 answers

Firebase FCM silent push notifications for iOS

I have a problem with silent notifications on iOS. When my application is in background, I don't receive silent notification sent by FCM. But if I try to send directly to APNS, the notification is successfully received. This is the JSON sent to…
27
votes
5 answers

Chat App using Firebase: Get notification when new message received - Android

I am developing a chat app using Firebase Realtime Database. I have been able to send and receive messages properly. Now, I want to implement notification whenever new message is received. For that, I have created a Service which listens to database…
27
votes
6 answers

GCM defaultSenderID

Could somebody please help me understand what the gcm_defaultSenderId is in the following code (found in onHandleIntent in RegistrationIntentService.java): InstanceID instanceID = InstanceID.getInstance(this); String token =…
Brandon
  • 1,886
  • 2
  • 17
  • 28
27
votes
1 answer

How to make an icon in the action bar with the number of notification?

I would like to make a notification icon in the action bar to inside the number of notifications. For example (Google Adsence) : I found this answer on stackoverflow, but it does not fully answer my question because in this case it is only the…
lopez.mikhael
  • 9,943
  • 19
  • 67
  • 110
27
votes
4 answers

Check for access to notifications using NotificationListenerService

I'm using the >=4.3 NotificationListenerService to access notifications. On the first start, my app takes the user to the "Access Notifications" system panel, but I'd like to take the user there whenever the checkbox for my app in "Access…
Nick
  • 3,504
  • 2
  • 39
  • 78
27
votes
2 answers

How to create notification system in rails?

Basically, I want to create a notification like Facebook and Stackoverflow. Specifically, in a Post-Comments system, when a post get commented, everyone involved (people who creates the post and who create comments, except the new commenter) gets a…
ZK Zhao
  • 19,885
  • 47
  • 132
  • 206
26
votes
4 answers

How can you disable the iOS Notification Center within your App?

If you have a full screen iOS app and you want to prevent the notification center from being pulled down, can you and how? Also can you block notification alerts or banners from displaying while your app is loading? (I think this is a no way for…
Rodney S. Foley
  • 10,190
  • 12
  • 48
  • 66
26
votes
2 answers

Webkit notifications requestPermission function doesn't work

I am trying to implement support for WebKit's native desktop notifications on my site. When I try to ask for user's permission to use the notifications, absolutely nothing happens. For example, the following HTML does not prompt Chrome to ask me for…
Alexey Blinov
  • 1,684
  • 3
  • 17
  • 25
26
votes
2 answers

Desktop notifications from GitHub

How can I get a desktop notification when new pushes appear at projects which I select?
MicTech
  • 42,457
  • 14
  • 62
  • 79
26
votes
5 answers

Android O - Notification Channels - Change Vibration Pattern or Sound Type

With Android O we get the "Notification Channels". As far as I understand that means that the user can't set the notification tone or other related Notification settings inside the APP anymore . The user needs to go to the "Notification Channels…
chrisonline
  • 6,949
  • 11
  • 42
  • 62
26
votes
2 answers

Android Notification with FCM - Who started the FirebaseMessagingService?

According to the set up guide here, in a sample app, A) I created a class that extends firebase services class. B) I put these classes in the AndroidManifest.xml A) Java Class public class MyFirebaseMessagingService extends FirebaseMessagingService…
26
votes
9 answers

Prevent new activity instance after clicking on notification

application (non-wanted) behavior - application is started, some text is put into text-box and notification is created through button action. user "clicks" the home button, application is "minimized", notification is available in bar user selects…
user375418
  • 271
  • 1
  • 3
  • 4