Questions tagged [android-push-notification]
252 questions
2
votes
1 answer
Push notifications internationalization
I know 2 ways
send KEY and parameters from server to client; generate notification body on client
send notification body from server to client
What approach is better in multilanguage application and why?

Romper
- 2,009
- 3
- 24
- 43
2
votes
3 answers
How to find out the current (top) Activity from onMessageReceived (of FirebaseMessagingService)?
I have been searching everywhere but just can't figure how to get the current (top) activity of a running Android application.
Alright, my scenario is I received a Firebase Cloud Messaging Data payload while the app is in the foreground and the…

ikevin8me
- 4,253
- 5
- 44
- 84
1
vote
2 answers
Customize Style for Notification Action
quick question, is it possible to customize style for Notification action in android, so the notification can look like the one from popular messaging apps like WhatsApp, Viber, Slack.
So far I've tried using custom layout, but then the behaviour is…

Daguna
- 141
- 8
1
vote
0 answers
Push notification not showing on android in foreground mode only for the first time
I am facing some weird behaviour on showing push notification on android using FCM.
When I am using app in foreground mode - Received notification silently but no message/title in notification bar.
But in other modes like background/inactive its…

KKL
- 85
- 5
1
vote
0 answers
How to set firebase notification on WearOs From Mobile
I've an application for Android mobile and wear-os with same package name as companion app. When their is notification came on Mobile for my App and Mobile is not in use then notification received on watch and I want to open watch app from this…

Sumit Ojha
- 283
- 2
- 8
1
vote
2 answers
Prevent Android 13 from showing the notification permission prompt
Android 13 automatically asks the user if they would like to allow the app to send them notifications.
My app does not show any notifications, therefore it doesn't make any sense to ask the user for push notifications at this time. I would like to…

Tyler
- 19,113
- 19
- 94
- 151
1
vote
1 answer
React Native OneSignal: User not prompted for consent on Android
In my React Native app, I want to prompt the user to consent to receiving OneSignal push notifications. I have the code OneSignal.promptForPushNotificationsWithUserResponse(), which on iOS successfully prompts the user, but on Android it doesn't.…

gkeenley
- 6,088
- 8
- 54
- 129
1
vote
0 answers
Delphi Android App not starting with activated pushnotification
My android App will not starting since API > 30 and in googles play store the target api-level has to be greater then 30 for updates I am not able to make a app-update.
When I uncheck the flag "receive push notifications" in Options - Permissions,…

Gebhard Blank
- 11
- 2
1
vote
1 answer
Flutter: Android notification icon displays white
I'm using flutter_launcher_icons package to generate launcher icons for the apps. Everything works as expected, the launchers are generated and set for Android and iOS. However, on Android push notifications, the launcher is displayed as a white…

Laura
- 402
- 1
- 7
- 24
1
vote
0 answers
open specific activity and send data on click of a notification when app is killed
I have an application implemented with firebase push notifications.
I have a scenario where I open a NotiticatinDetails activity on click of the notification and show the notification message in a textview. It works fine when the app is in…

Kalyani Bandari
- 19
- 1
1
vote
0 answers
Flutter flavor does not refer the resource folder
I have arranged my app flavor folders and the build.gradle file specification as below image.
Resource files are identical in both flavors but image content are different (ex: red color and green color). Flavor1 works fine in every aspect, but the…

Sandun Perera
- 541
- 6
- 21
1
vote
0 answers
Custom Push Notification - Full width background color
I am implementing custom push notifications. I have a custom layout, modified using RemoteViews. I have set color using
contentView.setInt(R.id.parentLayout, "setBackgroundColor", Color.parseColor("#4979C5"))
…

Daniyal Javaid
- 1,426
- 2
- 18
- 32
1
vote
1 answer
the notification icon is white in android but works fine in iOS
I have been using Unity and firebase messaging for push notification it is working fine with iOS but for android the certain phones are having white box instead of the application icon for phone that is using android 10 but works for android 11. I…

Aravind Balakumar
- 11
- 4
1
vote
0 answers
How to check the Notification Received Status from Firebase in my Server
I have setup push notification service with Firebase, I'm sending notifications with the help of REST API, notification are received by different clients at different times based on their token.
There can be different reasons when a user will not be…

Wajadtuha GST
- 11
- 1
1
vote
0 answers
How to handle FCM data payload, without user tapping on the notification banner?
I'm currently developing an app for a client, and one of its requirements is to handle notification data from FCM. I read the FCM docs and to handle FCM data when the app is background/closed, I'm using the getIntent().getExtras() method.
However,…

Rex James
- 11
- 4