Firebase background notification icon problems - android

I'm working at an app that is completely based on Firebase tools hence I adopt FCM to send push notifications. Talking about notifications my app receives when it's in foreground, they perfectly work and I manage to handle it as I want through FirebaseMessagigService and onMessageReceived method in particular.
Unfortunately this method seems to be completely transparent when the app is in background...I've attempted many different ways, and tried to follow as many as possible official tutorials and stack overflow suggestions, but there's a lot of contradictory information and I definitely don't succeed in changing the notification icon as I'd like to do. I have to accept the white and grey circle the system proposes to me but this is certainly not a good presentation for an app. :-(
Is there someone who has the key to solve this problem and/or has understood which the final word from Firebase team could be?
Thank you very much.

Yep! You can set which icon to use in your manifest file.
<meta-data
android:name="com.google.firebase.messaging.default_notification_icon"
android:resource="#drawable/ic_stat_ic_notification" />

Related

Recieving Notifications

So I have this idea of an app that would get all youtube's notifications for the day and puts them all in one page and give you some functionality over them like adding to watch later and maybe not interested and some others all in one click, in addition to that i would be able to make better notification tiles you know the default one isn't that good and i've seen better, I thought about it for a while and I think i am going to go about it this way:
1- stop youtube itself from sending the notifications.
2- making the app get this day's uploads and listing them.
3- making the app send the noti... in a better looking tile.
4- adding the "Other functionalities".
But..., i've looked around for notification support on the youtube api page and found nothing useful.
Is there any api or anything that would help me in this, i am using android studio BTW.

Stack android push notifications in parse unity

I have push notifications set up which work, however when the user has multiple notifications I would like to combine them into one summary notification.
Does anyone know what I have to do to achieve this? I haven't been able to find any examples of this being done using Unity.
My best guess is that I have to basically make my own copy of ParsePushUnityHelper.java, compile it into a .dll which I then add as a Unity Native Plugin, then hook that up in a similar way to PushBehaviour.cs, but that is a lot of work so I am hoping there is another way.
Okay, so basically what you need to do is create your own .jar using the contents of this folder, save a list of received notifications to update a notification with, then clear that list when the notification is opened or cleared.
For more info, check out the discussion I had with Parse developers here.

Notifications in Notification Center disappearing after opening one of them

I have a server that sends users many push notifications at any single time. Let's say 5 notifications are send to the phone. If I open one of them, all other notifications disappears.
How do I make the only one that is clicked, disappear. I look through the tutorials and done everything correctly. Is it something to do with the badge number or do I need to assign a special ID to every notification?
I can't find any solution on the web and I am surprise no one else faces this issue.
Ps. I am using Ionic Framework to build my app
" I am surprise no one else faces this issue."
Many many people have faced this same issue, its a mystery why Apple don't add more functionality in this area after so many years, but the situation is that you can't programatically delete just a single notification. You either delete all of them or none of them.

Android : calling an url while app is on background

I have an app where I detect tags and my question is :
I want my app to do an action when detecting new tags, in this case, opening a webpage. It works without problems but only when the app is on the foreground, but I want it to work even when the app is running in the background. I read about Android Services but I'm not sure it is what I can use.
Can you give me directions to find a way to solve that problem?
Thank you very much
Please see AsyncTask from google documentation. Here is the link https://developer.android.com/training/best-background.html
This site has an example on it
http://www.sitepoint.com/scheduling-background-tasks-android/

How can I show notification in Android lock screen?

Is it possible to show a push notification in the lock screen like iOS does?
I've seen there are a lot of applications that manage notifications so that they appear this way but my question is: is it possible to do that with my application without using these third apps??
I am following this tutorial its almost work but there are alot of issues still remain. I am using Activty instead of Service. Please follow this.
Android Facebook lock screen notification

Categories

Resources