Questions tagged [custom-notification]

56 questions
6
votes
3 answers

android.app.RemoteServiceException: Bad notification posted from package. Couldn't expand RemoteViews for: StatusBarNotification

I have implemented custom notification with RemoteViews widget. I tested it on Android 5.0.2 and Android 6.0. It was working fine. But after sometime, it started crashing everytime it received notification from GCM. Crash Dump - Process:…
5
votes
0 answers

Create custom layout for notification in Flutter

I need any example to create a custom layout for notification and link that to my flutter app for firebase push notification. Anyone have any knowledge on it please help me. Thank you. I need this type of notification for my App firebase push…
3
votes
1 answer

Remoteview displays system notification when App is not in the foreground or not running instead of Custom Notification

First of all, let me tell you what I have done so far. I have gone through lots of searching including Remoteview is not applied in background firebase_messaging not customizing notification when an app is not in the foreground Also, I have…
Ravi Vaniya
  • 1,562
  • 1
  • 17
  • 28
2
votes
3 answers

What is the diffrent between OverlayEntry and Stack widget in flutter?

I want to show an floating notification widget on the entire widgets of the application (on the top of MaterialApp widget). So i find two possible way to do that : wrap MaterialApp widget with a Stack widget insert my widget as OverlayEntry…
Taleb
  • 1,944
  • 2
  • 11
  • 36
2
votes
3 answers

Android notification badge dot not showing for custom firebase push notification

I have implemented custom view for firebase push notification. For custom view we need to remove "notification" key from push Json so that it can be handled even when app is closed like below: { "data": { "detail": { } }, "to": ""…
2
votes
1 answer

Build a collapsible notification menu like Google Weather

I am developing a simple Android app and I'm trying to build a notification exactly like Google weather looks like on Android Oreo: should be collapsed by default should be grayed out when notification is expanded, the notification subtext should…
2
votes
1 answer

Implement android expandable notification with xml content?

I'm trying to implement custom notification with an action buttons But when I try to implement this, the actions buttons and the app name doesn't appear. My implementation: RemoteViews remoteViews = new …
2
votes
1 answer

Custom Notification View in Appcelerator Titanium

I'm trying to find a way to show a custom notification view while app isn't running or device is locked. Is it possible to show custom notification alert for both android and iOS using Appcelerator Titanium ? I'm sharing a image that i want to show…
Nuibb
  • 1,800
  • 2
  • 22
  • 36
2
votes
1 answer

Buttons are not displayed in notification

I am creating a custom notification in service (MusicService) and adding buttons as follow. //Notification Intent notIntent = new Intent(this, MainActivity.class); notIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK |…
2
votes
1 answer

How to create daily custom notification using time picker in android?

What I want:- To make a app which gives notification on given time by user. It should also run on background. I can save the time hour and minute 24hr format on SharedPreferences database so that I can overwrite the time again. Else part, how to…
2
votes
0 answers

Onclick of button in custom notification not working

I have a pause button in my notification, on click of which should go to the broadcast receiver. The following is my code: NotificationCompat.Builder builder = new NotificationCompat.Builder(WalkTrackingActivity.this); remoteViews = new…
2
votes
2 answers

How to pin notification always on the top of notification bar

I am trying to fix four buttons always at the top of notification bar that cannot be closed. The buttons will be fixed all the time when the application is launched for the first time. For this purpose I am creating notification through Notification…
2
votes
1 answer

Android Big Custom Notification with Action buttons in API 23

I am trying to display a big/expanded Custom Notification on Android API 23 but the action buttons don't show. Bellow you can find my code. I also tried adding actions, but I was not successful. I also tried other answers from other questions but…
Daniel Benedykt
  • 6,496
  • 12
  • 51
  • 73
1
vote
1 answer

How can I remove header information (which includes small icon, app name) and expand icon from the Android custom notification?

I am trying to build custom notification for my app, but I am not able to remove the header information (which includes small icon, app name, time) and the expand icon. Basically I want completely my own design of notification which takes full width…
koder
  • 454
  • 6
  • 18
1
vote
1 answer

Android - Custom BigPicture style notification not working in android 13 device

After updating the android project to android 12, big picture style custom notifications are not working in Android 13 devices, but they work in lower versions of Android 12 & below devices. If I use the local image drawable it is working in Android…
1
2 3 4