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

FCM Multiple push notifications not working properly when app in background state

I am using fcm for push notifications, I am handling only data payload. Multiple Notifications are working fine when app is in foreground, here I am using id value from server in click_action to move the notification to related post when we tap on…
2
votes
1 answer

Processing notifications in Xamarin Forms Android

I'm using the library https://github.com/aritchie/notifications and I can create and schedule notifications properly. I wish to process them in Android so that depending on the notification - it will navigate to a particular page when the user taps…
2
votes
1 answer

I want to show unread notification count on my app icon like whatsapp

I have created notification in my app using volley library it's calling to firebase server my problem is when i push the notification in specific user(device) the update notification only showing and unread notification count number is not showing,…
2
votes
1 answer

Did I screw up my System_server service?

My phone is producing a non-stop Log.d output. The following repeats over and over again about 1200 times per second. 04-25 15:58:04.883 1542-5012/? D/NetworkStatsCollection: getHistory:mUID 10266 isVideoCallUID: false PID 1542 is System_server…
2
votes
0 answers

Android push notification expand on click

My target is to show notification in normal mode. After click on it to be expanded like example. From here I must be able to click on buttons. Problem is that when I add .setStyle(new NotificationCompat.BigTextStyle() …
IntoTheDeep
  • 4,027
  • 15
  • 39
  • 84
2
votes
1 answer

Push Notification icon turns white in Android lollipop and above

I having trouble to send notification to device SDK >= 21. The notification icon is blank. What I tried so far: Changing android target sdk to 20 I checked the if statement for lollipop devices: if(android.os.Build.VERSION.SDK_INT >=…
2
votes
1 answer

Launch Homescreen on Notification Click

Here is my Notification Builder : public void CustomNotification() { // Using RemoteViews to bind custom layouts into Notification RemoteViews remoteViews = new RemoteViews(getPackageName(), R.layout.customnotification); //…
HarshitMadhav
  • 4,769
  • 6
  • 36
  • 45
2
votes
2 answers

Can I send a notifications using Firebase console to more than 1000 users?

I'm using Firebase to push notifications to my iOS/Android Apps. The target estimate for the iOS app is "-" while it's >1000 for the android. Is there a way to push notifications to more than 1000 users? Why is the iOS target not defined? Does that…
Lyn
  • 43
  • 9
2
votes
1 answer

BigPictureStyle Notification not showing properly in Xiaomi MIUI-8

I wanted to display a bigPictureStyle Notification in MiUi(don't want to use custom view) using the following code-- NotificationCompat.Builder mBuilder = new NotificationCompat.Builder(this) …
Arnav M.
  • 2,590
  • 1
  • 27
  • 44
2
votes
0 answers

PendingIntent with Extras return null

I'm trying to implement Notifications in my app. I'm using AlarmManager with a PendingIntent of a intent with some Extras (Models Objects) but, when I Receive in a BroadcastReceiver class, all my extras disappear Here's the…
Guilherme Golfetto
  • 510
  • 2
  • 5
  • 25
2
votes
1 answer

Nougat RemoteInput: color of text field

I've implemented RemoteInput in my app, but text field area appears with gray background abd I want it blue like this: Is there are any way to do this? UPD: Looks like colorPrimary is used for this, but I don't want to change it in whole app, just…
2
votes
0 answers

FCM notification is not removed from notification tray after clicked

My app using FCM, and it contains notification key in FCM message body. Most of devices, when click the notification, it's removed from notification tray. But, it is not removed in my Asus Zenpad 8, android 5.0.2 tablet device. This is bug…
NamNH
  • 1,752
  • 1
  • 15
  • 37
2
votes
2 answers

How to create inshorts like notifications for android

How to create inshorts like push notifications for andriod. The notifications include full image with text at the bottom of the notification. The small notification is just the text but while u expand it, it shows the image in background with text…
2
votes
1 answer

Start activity with provided backstack

I'd like to start a "precompiled" stack of activities when a user click on a notification. I've tried: Intent[] intents = new Intent[]{ new Intent(this, ActivityA.class) .addFlags(Intent.FLAG_ACTIVITY_NEW_TASK), new…
2
votes
1 answer

Cancel an android scheduled notification before it is shown

I am trying to cancel a notification I have requested to be sent to the user if another notification is trying to be sent within 15 seconds of the first one. This is my code: Global variable: public NotificationManager nm; Notify function: …
Haris
  • 521
  • 1
  • 6
  • 14