Questions tagged [android-notifications]

A status notification adds an icon to the system's status bar (with an optional ticker-text message) and a notification message in the notifications window.

A notification is a user interface element that you display outside your app's normal UI to indicate that an event has occurred. Users can choose to view the notification while using other apps and respond to it when it's convenient for them.

Think of notifications as a news channel that alerts the user to important events as they happen or a log that chronicles events while the user is not paying attention. The user can expand the notification bar and by selecting the notification the user can trigger another activity. Notifications in Android are represented by the Notification class. To create notifications you use the NotificationManager class which can be received from the Activity via the getSystemService() method.

Useful links

4920 questions
2
votes
1 answer

Nearby Notifications not showing

I've configured three types of beacons: Eddystone-UID Eddystone-UID with TLM iBeacon They are visible in Google Beacons Dashboard, I see these beacons in Beacon Toolkit App in "Registered" tab too. I've added two nearby notifications: …
radzio
  • 2,862
  • 4
  • 26
  • 35
2
votes
1 answer

Sticky Notification of my Custom Cordova Plugin kill when installing push plugin

I am written on Custom plugin,Which works only for handling the sticky notification plugin events. Working Scenario and Issues I am getting:- It works fine when install in the demo corodva application and functionality also works fine like after…
2
votes
0 answers

Does a heads up high priority notification in android wake up the screen on a locked device by default?

Or do you have to implement your own logic for this using wakelocks for example?
2
votes
2 answers

Multiple notification by NotificationManager

Currently I notifying user as - mNotificationManager.notify("My App Name",1212,notification); This is working nicely. But it shows only one icon in status bar, though I sent multiple notification on different times. I would like to show icon for…
s.k.paul
  • 7,099
  • 28
  • 93
  • 168
2
votes
1 answer

Android remove smallIcon overlay from expanded notification layout

I'm trying to display a notification with expanded layout on Lollipop, but i don't want the smallIcon to show up on the bottom right corner of the largeIcon as per the example below. notice that this only happens for the extended layout (i tried the…
Paghillect
  • 822
  • 1
  • 11
  • 30
2
votes
1 answer

Open google map from notification via intent

I have an BroadcastReciver that listens for incoming sms. When sms come, it shows notification. I want, when user open notification, it's go to result activity, and it's open google map via intent. I think I wrote everything ok, but it doesn't…
amir
  • 2,443
  • 3
  • 22
  • 49
2
votes
0 answers

Expanded Notification is collapsed after 10 seconds, how to increase this value?

After I send a notification: NotificationCompat.Builder mBuilder = new NotificationCompat.Builder(context) .setSmallIcon(myVarSmallIconResId) .setContentTitle(myVarTitle) …
Alex
  • 8,908
  • 28
  • 103
  • 157
2
votes
1 answer

How to disable notification running in background service

I am creating an android Apps where a notification will be sent to user everyday at a specific time. The notification is running in the background. I would want my Apps to let the user turn off the notification using a button called btnStopService.…
2
votes
1 answer

Android Notification Reappears

I have been trying to follow the Android Universal Music Player example for how to handle notifications. Pausing audioplayback triggers stopForeground(false) I use false to keep the notification around. Then if I dismiss the app from recents the…
Hackmodford
  • 3,901
  • 4
  • 35
  • 78
2
votes
0 answers

Show Notification in full screen

I want create custom ui notification and show it full screen. How can I do it. android:layout_width="fill_parent" android:layout_height="fill_parent" android:gravity="center_horizontal" android:orientation="vertical"> …
Sweety Bertilla
  • 972
  • 10
  • 35
2
votes
3 answers

Showing a Toast notification from a service

I have a background service that monitors foreground apps. It's used to protect a certain app such that if the protected app is in the foreground and then pushed to the background because another app started, it would show the user a notification…
2
votes
1 answer

Getting blank notification when using custom notification layout

I am creating an app for a non-English market. Hence, I have to change the font of the notification. I have the following code. But whenever the notification comes, it is blank, there is no logo or text displayed. The small icon is shown at the…
suku
  • 10,507
  • 16
  • 75
  • 120
2
votes
1 answer

How to prevent notification from opening an activity or removed when clicked in Android?

I am developing an Android app. I my app, I am trying to show process notification to user. But what I want is I do not want notification opening an Activity or removed when it is get clicked. What I am doing is I am showing notification when a user…
2
votes
0 answers

Android download manager Notification not showing on download complete

I'm implementing a background downloading using a notification with button that suggest user to download a content. on click of the button it will trigger a Download Manager to download the link provided and when download is complete, a new…
KaHeL
  • 4,301
  • 16
  • 54
  • 78
2
votes
1 answer

Android - replacement for deprecated Notification class

I was wondering what I could use to replace the deprecated Notification class and the setLatestEventInfo() method. It's not recognizing the setLatestEventInfo() method. Here is the current code I have: public void makeForeground() { Notification…
user268397
  • 1,917
  • 7
  • 38
  • 56