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
44
votes
2 answers

How to Schedule Notification in Android

I'm trying to set notification for a time in the future. I have the code for creating a notification but I can't find an option to schedule it. How can I schedule notifications?
OmerN
  • 933
  • 2
  • 9
  • 20
43
votes
8 answers

Push Notifications when app is closed

Do you know if is it possible to receive notifications from google cloud message when the application is fully closed? I know if it's open or in background yes, but can it be programmed any way in order to receive them? EDIT: I continue without…
Dani Andújar
  • 1,116
  • 1
  • 12
  • 15
43
votes
9 answers

Android Notification buttons not showing up

This is my code to set up a notification with buttons. Intent receiverIntent = new Intent(ctx, ResponsivePrefsActivity.class); PendingIntent pReceiverIntent = PendingIntent.getActivity(ctx, 1, receiverIntent, 0); Intent clearIntent =…
DraganescuValentin
  • 842
  • 2
  • 10
  • 16
43
votes
1 answer

Database Schema For Notification System Similar to Facebooks

I am trying to design a notification system similar to facebook and I have reached a bit of a brick wall. My requirement is to be able to support an infinite number of notification types that may have different types of meta data required to be…
mcottingham
  • 1,926
  • 2
  • 18
  • 28
43
votes
3 answers

When is didRegisterForRemoteNotificationsWithDeviceToken called?

There are a lot of questions about didRegisterForRemoteNotificationsWithDeviceToken but they all sidestep a very direct question which I cannot seem to find an exact answer to. For an app which is properly set up for notifications in all other ways…
jwl
  • 10,268
  • 14
  • 53
  • 91
42
votes
8 answers

Android O reporting notification not posted to channel - but it is

Couple Android O notification questions: 1) I have created a Notification Channel (see below), am calling the builder with .setChannelId() (passing in the name of the channel I created, "wakey"; and yet, when I run the app, I get a message that I've…
jkane001
  • 1,694
  • 1
  • 15
  • 23
42
votes
2 answers

How to send notification to specific users with FCM?

I prepared the receiver for FCM and can send a notification to all devices. gcm-http.googleapis.com/gcm/send with this link can send to target users who is registered and post to the target devices like below json : { "notification": { …
42
votes
5 answers

iphone local notification in simulator

I just downloaded xcode and trying to make local notification example. The question is if local notification works in simulator? thank you
user349302
  • 3,491
  • 7
  • 27
  • 31
42
votes
3 answers

How to set the app icon as the notification icon in the notification drawer

As shown in the figure... I am getting my notification icon(on left to the red colour). But I need to display the app icon as shown by the black arrow public void notify(View view){ notification.setSmallIcon(R.drawable.ic_stat_name); …
42
votes
2 answers

Disable default alert sound for Firefox web notifications

I'm using the Web Notification API to show desktop notifications from my web app under OSX. In Firefox only, when a notification is triggered, it also plays a sound (in Safari and Chrome, using the exact same code, only the notification displays and…
daGUY
  • 27,055
  • 29
  • 75
  • 119
41
votes
4 answers

On Android 8.1 API 27 notification does not display

I get Toast on Android 8.1 API 27: Developer warning for package "my_package_name" Failed to post notification on ... Logcat includes next strings: Notification: Use of stream types is deprecated for operations other than volume control …
41
votes
5 answers

What are the sizes of the icons in Android notifications action-buttons?

In expandable Notifications: what dimensions (in dp) should the icons have? Like the Icons for Snooze and Email here:
herrmarek
  • 805
  • 1
  • 8
  • 16
40
votes
8 answers

Extract notification text from parcelable, contentView or contentIntent

So I got my AccessibilityService working with the following code: @Override public void onAccessibilityEvent(AccessibilityEvent event) { if (event.getEventType() == AccessibilityEvent.TYPE_NOTIFICATION_STATE_CHANGED) { …
Force
  • 6,312
  • 7
  • 54
  • 85
40
votes
11 answers

UNUserNotificationCenter did receive response with completion handler is never called iOS10, swift 2.3

I am scheduling new notifications in iOS10, like this: func scheduleNotification (event : Meeting, todaysBadgeCounter: Int) { if #available(iOS 10.0, *) { let minutesBefore = 10 //interval in seconds from current point in time…
Async-
  • 3,140
  • 4
  • 27
  • 49
40
votes
5 answers

How to make notification intent resume rather than making a new intent?

What i have here is a simple webview activity that when loaded it auto displays an ongoing notification. The idea is that people can navigate away from this activity and quickly access it again from any screen they want by pulling down the drop down…
brybam
  • 5,009
  • 12
  • 51
  • 93