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

Slack: is there a way to disable all @channel notifications

The Slack chat tool by default sends email notifications saying "You were mentioned ..." when in fact it was @channel and not you. The only way I can find to turn these off is to go into each channel setting.
Dave Crooke
  • 670
  • 1
  • 6
  • 12
40
votes
11 answers

Disable vibration for a notification

I'm writing an app using notification. Google developer guidelines encourages developers to provide settings to customize the notifications (disable vibration, set notification sound...), so I am trying to disable vibration for notifications if the…
nstCactus
  • 5,141
  • 2
  • 30
  • 41
40
votes
7 answers

resuming an activity from a notification

I have a notification in the status bar for my app: Notification notification = new Notification(R.drawable.icon, null, System.currentTimeMillis()); Intent notificationIntent = new Intent(this.parent, MainActivity.class); PendingIntent…
mazbox
  • 613
  • 1
  • 5
  • 7
39
votes
3 answers

iOS - Ask to enable push notifications after initial decline

I would like to know if it's possible to force the "XXXXX would like to send you push notifications" popup from within an app, after an initial decline. The use case is as follows: The user installs the app, gets the alert about push…
Joel
  • 15,654
  • 5
  • 37
  • 60
39
votes
2 answers

What ways are out there to display a desktop notification from a web app?

What I would like to do is show a toaster like notification preferably but any method of "pushing" updates to the desktop is interesting. Thanks
reshefm
  • 6,017
  • 8
  • 36
  • 40
39
votes
1 answer

what is notification channel id?notifications not work in api 27

I updated my project api target to 27 and all notifications were disabled. What's the difference between notification in api 26 and 27? Notification notif = new NotificationCompat.Builder(this) …
39
votes
5 answers

Android Studio: sound notification on build success

Is it possible to play a sound after my app was compiled and deployed on smartphone in Android Studio / IntelliJ My workaround is to play a sound inside of onStart() method of my StartActivity, but I have to implement (copy/paste) this pattern for…
alex
  • 8,904
  • 6
  • 49
  • 75
39
votes
5 answers

NotificationCompat 4.1 SetSmallIcon and SetLargeIcon

I used this simple code to set a Notification in Android 4.1 or higher. It works well, but my problem comes with SmallIcon and LargeIcon. I understand that SmallIcon is shown in the status bar and the LargeIcon is shown in the dropdown…
Ton
  • 9,235
  • 15
  • 59
  • 103
38
votes
3 answers

Android - notification manager, having a notification without an intent

I would like to be able to fire a notification to alert the users about a timer that has finished, however i do not wish to have an intent when you click the notification. I've tried passing in null for the intent String ns =…
Garbit
  • 5,805
  • 6
  • 39
  • 72
38
votes
6 answers

Notification to restore a task rather than a specific activity?

I have a foreground service that keeps a connection open with the server as long as the user is logged into the application. This is so that the connection is kept alive and can receive messages directly from the server even when the application has…
Brad
  • 507
  • 1
  • 4
  • 12
38
votes
3 answers

How to use Notification.Name extension from Swift to Objective-C?

I created an extension for Notification.Name as below: public extension Notification.Name { public static let blahblahblah = Notification.Name(rawValue: "blahblahblah") } Now I want to use this extension in Objective-C, but it's not accessible…
BARS
  • 629
  • 1
  • 6
  • 18
38
votes
2 answers

How to access a Dictionary passed via NSNotification, using Swift

I have code that sends a notification (where serialNumber is a String): var dataDict = Dictionary() dataDict["Identity"] = serialNumber dataDict["Direction"] = "Add" …
user3864657
  • 381
  • 1
  • 3
  • 3
37
votes
5 answers

Android how to show notification on screen

I've been working on push notifications and I am able to implement it and display it on status bar, the problem I am facing is that I want to display it even if the phone is lock, Under the lock screen where it says ("drag to unlock"), I have seen…
user606669
  • 1,674
  • 7
  • 27
  • 39
37
votes
4 answers

How to group android notifications like whatsapp?

I don´t know how to group two or more notifications into only one and show a message like "You have two new messages".
36
votes
4 answers

Change Notification with Sql Server 2008

I have an application that consists of a database and several services. One of these services adds information to the database (triggered by a user). Another service periodically queries the databases for changes and uses the new data as input for…
Mephisztoe
  • 3,276
  • 7
  • 34
  • 48