Android-notifications Questions
Ad
How to remove notification from status bar when clicking the my footer icon
I want to remove the notification from status bar when clicking on footer icon. how to call this method outside the service class:
How to remove notification when service stopped?
Code i'm using now is this: private void removenotification(){ notificationmanager notificationmanager =
NotificationCompat.PRIORITY_DEFAULT doesn't make sound on older OS versions
I don't specify any sound (resource), i want to use the default sound it works fine on android 8 and 9 but on android 4-7 it
Android Q: Error when using bubble in android java.lang.NoSuchMethodError
I am trying to use this new feature in android and
How to dismiss notification without intent?
I want to display a notification inside the app that disappears when the notification is tapped without starting an activity. i use an
notification not received after "minifyEnabled true" in android, Why?
My notification receive when build.gradel file minifyenabled false, but whenever we change the minifyenabled
How to enabled floating notification by default with react-native-firebase?
Halo, i have push notification in react-native using react-native-firebase, it's running well on emulator but on some devices the floating
Error : Use of fullScreenIntent requires the USE_FULL_SCREEN_INTENT permission
I'm using notifications with fullscreen my code works find in oreo and below version but when i'm running android-q i'm
Firebase Notification successfully sent via CURL and Firebase console but not received on the device
I am trying to send a push notification to my android device using legacy app server protocol. the notification was sent successful as per the
Android notification is not showing as a message
The notification it self is working good, but not as i want. it vibrates and shows the icon defined but not as a watsapp notification and in the
Ad
Notifications are being sent out on the wrong time (Java, Android Studio)
In my app the user can choose a time and a date when a notification will be sent out on. however, the notifcations are not being sent out on the
android - foreground notification is cancelled on app removed from recent apps
I am making music player app , i start foreground service for the music playing process. but when app is removed from recent apps foreground
Firebase FCM campaign targeting more users than I have downloads
So i set up a firebase project so i can send and schedule notifications for an application that i created. it worked fine in testing, and so i
Firebase Foreground Notifications Not Showing
For some reason my firebase notifications are not showing in the foreground. they work fine in the background however, and i followed what anroid
How to display a notification from service when activity gets destroyed
Here my scenario in which i am starting a service from an activity which play music in background. when i press back button on this activity,
Flutter: How to subscribeToTopic for Firebase (FCM) registration token in Flutter
I want to subscribetotopic for firebase push notification in flutter , i can subscribe to any topic but my purpose to subscribetotopic against
Stop a service by unbinding all bounded activities
I have a started and bounded service (music player) and i want to stop it when the notification's close button is clicked. however, the service
Open Notification message from FCM as link/URL in Android Application if there is URL in the message of Notification
Push notification code using fcm sends title and message as notification text in android and when i click on the text, it takes me to the app
Xamarin.Android - Keep the app working in background after closing it with a local notification
Currently, i have a mobile application written in xamarin.android. because there are constant http requests going on in the app, what i'd like to
Different notification sound not working in Oreo
I am facing some notification related issue in oreo version only. i follow
Go to specific activity when notification received in closed application?
Below is my code, it works perfectly while app is in background but it gets to splash screen when app is not in background;
Ad
Creating a notification at a specific time
I have a calendar app that i'm working on, and i need to alert the user to an upcoming event. so i want to know what's the best practice
Firebase: Making multi-lang notifications
My case is the following: a user do something, then my firebase script in functions should notify his friends, but it don't know what lang set up
Can I set a custom ringtone and vibration pattern for a firebase notification?
Recently i started coding my first android project that includes firebase cloud messaging. i use android sdk 21 (android 5). my intention
Launch activity from notification instantiating activity even if already there
My app has a background service which can run even if the app is destroyed. the app has two activities: a, which is the main
Bundled notification replaces the first notification
When creating a bundled notification using setgroup() and setgroupsummary() i am having some strange issues regarding the behaviour of the
NotificationCompat.Builder() not accepting Channel Id as argument
I know this question has been asked several times before. but none of the solutions worked for me. that's why i would like to ask the question
How Android Oreo Knows that an FCM Message has arrived?
I know that fcm messages are sent to devices corresponding to firebaseinstanceid.getinstance().gettoken() and on onmessagereceived() the fcm
Oreo: Stop notification from getting removed on swipe
My code: mnotifybuilder.setsmallicon(r.drawable.ic_status_bar) .setcontenttitle("")
Notifications in Android Oreo
First of all, i know this has been asked several times before, however i've yet to find a working solution so i thought about asking anyway.
Wear OS: notifications won't show
I am developing a stand alone app on wear os (android 8+) and i have issues with notifications. i am running a foreground
push Notification is not working in android studio
Hi i need to add push notification for welcoming the user on behalf of company here is my code but its not working
Ad
Receive a notification issue and open a fragment
I am working on application notification when a user receives a friend request notification and clicks on the notification the application has to
Restart scheduled notifications (that require Firebase data) after device reboot
My app currently schedules notifications for tasks at specific times (chosen by the user). the task's title and reminder date is saved in the
Android app daily notification using Timer
I found a tutorial for scheduled notifications using timer and timertask and i'm trying to implement it in my project to send a notification every
Send data to activity when Firebase notification is clicked in Android
In my application i want use firebase for notification. i want when click on notification (when app is
Open a different activity other than MainActivity when clicking Firebase Notification
In my application i want open custom activity (not mainactivity) and putextra to this
Remove notification icon of killed foreground service (Android)
After i killed the application (incl. foreground service) through the app settings, then the notification icon that is bind to the foreground
How to show FCM notification only when user closes the app in Android?
Let's say you've triggered fcm notification when the app is in the foreground. instead of showing the notification in the foreground, can i
In flutter how to clear notification in bar?
I am learning google cloud messaging and firebase messaging is working
How to create Notification.contentView in android Nougat and above?
I use notification.contentview to replicate notification views: view notificationview =
flutter_local_notifications events doesn't work
I'm trying to use flutter_local_notifications with google firebase on flutter. i followed oficial guides, wasted a week on it, but it stiil does
How to set badge count in Oreo without showing a notification?
I used to show a number in app icon using this library as
Ad
Sending notification via AlarmManager and BroadcastReceiver does not work?
I'm scheduling a notification for 5 days ahead, so i create an alarm using the alarmmanager who fires a pendingintent which triggers my
Firebase display automatic notification even when all overrided
I use firebase cloud messaging in my app, and i'm able to receive remote messages, with the data and everything i need from it. but even when i do
Notifications are working on an emulator but not on a real device
Im trying to test my app on a samsung galaxy s7(android 8.0), but the notifications do not appear, i have checked app permissions and battery
Clicking Android notification with extras to initialize app or update data: not handled when app was started by previous notification
My app shows a notification when a push message for a chat message is received. when i click that message, i want to start the app (if it hasn't
On some phones custom notification doesn't have an arrow for collapse/expand
I try to create custom notification for my test project. i have remoteviews for collapse/expand view. my simple code is public
Updating extra data on notification intents on Android?
I am unable to update extra data included in notification action (line 34 of mainactivity.kt). if i make several notifications and
Check Activity info in the MyFirebaseMessagingService when App is in foreground
I am working on a chat app. i am retrieving chats directly from the server. i am listening for new nodes. so, if, the app is in foreground and the
Name of the Android Notification's First Alert?
It may sound a weird question at first but i want to learn the name of the first alert in android so that i can research how it is done.
Android Notifications - RemoteInput uses the same intent for every message
A couple months ago, we implemented the direct reply functionality for android 7, so users can reply to chatmessages via the received
Notification channel error
I have an app which will recieve fcm notifications.app was recieved notifications on os below android oreo devices. but notificatons are not
Two or more Foreground Notification with Progress is replacing each other while updating its progress
I have a service that will run a upload task in foreground then showing a progress in the notification. since a user may upload multiple times
Ad
Why do I get RemoteServiceException for creating/updating a notification?
Background i have a spare time app that i've been working on for some years
How do i give boolean status success or not to pendingIntent in broadcast Receiver
I'm developing addaction notification from ibeacon, how do i give boolean status success or not to this actionintent
Uploading Files continuously to Firebase Storage in background with progress notification
I am able to upload images successfully to firebase storage but what if app is stopped,closed or killed by user or system ?
How to sort notification channels in system settings on android O
I have preset order of notification channels, that can be change. how to change order of notification channels? i try to sort by channel_id and
How to change textView value when getting a notification?
I'm trying to make a program where the value of a textview is changed when a notification appears on the phone. in my mainactivity i have
How to create download progress notification in Oreo?
I am creating an app which can download a file from the server and display progress in status bar. here's my code: private void
Unable to implement NotificationListenerService, because of unresolved class in Manifest-file
I am very new to android development. i am trying to make functionality where the value of a textview changes when a notification pops up. i
Push notification received while the app is in the foreground is different from push notification received when the app is in background
I have implemented fcm push notifications in an android app. while i am logged in to the app. i get the notification in the form that i am
How set Firebase notification ChannelID in Android O?
For api level 26 we have to set a channel id as a reference. i learned how to do it without a channelid and below there is my firebase messaging
Android compileSdk 27 start service automatically show notification
I have an app that start a service. i know that android oreo has some limitations, so i started my service with this code:
Android O - Single line Notification - like the "Android System - USB charging this device"
I would like to have an ongoing notification for my foregroundservice that requires as small place as possible. i like the
Ad
Firebase push notification in android not working correctly
I am developing an android application in which i am using firebase push notifications. everything is working fine but only one issue with
Oreo Notification Icon not displaying
I have used targetsdkversion 26 & notification icon is not displaying . when i changed to targetsdkversion 20 it's working correctly. but when
startForegroundService() did not call startForeground(), but it did
I'm having the context.startforegroundservice() did not then call service.startforeground() in my android service, but i cannot
Flutter OneSignal Notification Sound Not Working
I use onesignal to send notifications in my application i developed with flutter. notifications are coming. i also attached the audio file in
How to cater the list of scheduled time in an Alarm Manager to push notifications
I am trying to retrieve the list of time stored in sqlite (it has both hours and minutes) into the alarm manager to perform a
unable to open second notification
I wanted to open different articles in one activity using different post id's which i am sending via notification. and i am able to open one post
Media Style Notification action buttons not working with PendingIntent.getBroadcast()
I am creating a music player with notification style by using notificationcompat.mediastyle(). i implemented my code to send
FirebaseMessagingService #onMessageReceived is not being called
Firebase server sends notification, i get it, but my myfirebasemessagingservice's onmessagereceived is not being called. this is
How to show different text in repeating notification Android
I have a method getrandomwordfornotification in viewmodel(watch listfragment) which returns random word from database. and i want to show returned
Fail to Upgrade to Android 8.1
I have an existing project would i like upgrading from android 8.0 to 8.1, but it failed. i reading the changes on android 8.1, but i dont know
Clicking on notification doesn't open activity on background
I send notification from the firebase, while the app run on foreground clicking on notification will work perfectly. but if the app goes on
Ad
Is it possible to launch a specific activity with only data payload FCM notification?
Using firebase cloud function, i sent automatically a notification when a user reply to another one. when the notification is sent,
Intent.getIntExtra() is giving unexpected results
I'm publishing a notification using notificationcompat.builder class and adding an action button to it called canceli
java.lang.IllegalArgumentException on FirebaseMessaging.getInstance().subscribeToTopic()
I have a method subscribetotopic to subscribe users to a location in my app for firebase notifications. this method is called when
How to create an Android foreground service for web radio streaming with interactive notification?
I am trying to build an extremely simple radio streaming app which stores a list of web radio urls, which can be selected to stream audio; using a
How to use notification channels in android O
I am a beginner in android and right now working on a music streaming app. i have taken a course on udemy for beginners for that and the
MIUI heads up notification not working
I'm struggling to get my notifications to display heads up or peek as it is also called. it is working fine with stock android and lineage
How to collapse multiple notifications into a single one using Firebase?
I have function in firebase cloud functions which is used to send notifications to specific users within my app and has as the
Android notification setSound is not working
In my hybrid cordova android app targeting api 23+ i want to use a custom sound for notifications. to that end i have done the following
Android - Notification when OS is updated
I want to send a notification to restart my app when a new version of the os is installed. is there an option to set this type of
Google Play Prelaunch Report Crash
I recently released an app to google play, however i'm getting this error - java.lang.nosuchmethoderror: no static method
Default priority of notification channel on Android 8
I am in the process of changing the target sdk version to 26 and trying to use notification channels. i have some notifications for which i would
Ad
Notification background with grey square
When the notif is displayed, the icon is showed. but when i expand the notification menu, it's a grey icon. my manifest :
Why is the color for the notification icons generated by Android Image Asset Studio completely white?
When i right-click on my drawable folder and do new -> image asset -> notification
Notification Builder does not create the notification
Here is the complete code. import ... public class mainactivity extends appcompatactivity { @override protected
Send notification at specific time
I've been trying to send a notification on a specific time. i've got the time input from user like this: currenttimehour = new
Calling setProgress(0, 0, true) does not update Notification on > API 19
Update: after doing a lot more debugging, i figured out the cause of my notification not updating: calling
Push notifications on content change
Let's say i have an android application that simply builds a listview with content got from a random rest api. imagine now i need to send
Redirect to activity with preserving/creating activity stack
I want to start activity from notification. i want to open an activity, which is successor of some other activities. example activities:
notification does not appear?
Here is my notification builder func: public class notificationhelper { final static string channel_id =
Android - How to create a Notification with Action
I'm creating a notification like this. notification.builder builder = new notification.builder(context);
Oreo Notification Bar Round Icon
I want to know that how can i change the notification bar small icon in android oreo (api 26). it has round white icon showing in the notification
App uses the Launcher Icon as Notification Icon on some phones
I am testing my app on some phones. when testing on lg, samsung, and kodak phones, (ranging from android 5 to 7)the icon was the one i
Ad
Android Notification Action - Intent Extra not working as expected
I'm creating a notification with multiple actions. i'm using broadcast intents to communicate that one has been pushed
Ad
Blog Categories
Ad