for my flutter project I use firebase_messaging for push notifications.
It works great!
Now I wanted to extend my App with topics...
Is it possible to get all activated Topics for one push-user/id?
I cant see anything in the code.
Otherwise I have to save the activated Topics in my APP and send them to each time to firebase? But it could happen that a user deactivates/unsubscribes a topic and if firebase doesnt get the unsubscription, this topic is activated in Firebase but not in my app.... this is not very nice I think?
perhaps somebody can help?
Thanks in advance
Related
Im currently developing an app in Swift. I'm at the last stage of the app where I just need to integrate push notifications to the lock screen when certain user actions occur.
I'm going for something like how Instagram sends a push notification when a new user follows you or likes your post.
My entire backend is using firebase, and i've looked into firebase cloud messaging and I dont know if it has the capability to perform notifications like this.
I've watched tutorials and read documentation and I know you can push notifications to users from the console but I'm looking for notifications to be published and pushed based off specific user actions.
I know this is a very broad questions so what I want to know is:
A) Are notifications like instagram possible through Firebase cloud messeging?
B) If not, can you point me in the direction of how to figure this out?
Thank you!
A) Are notifications like instagram possible through Firebase cloud messaging?
Yes
Firebase send the push to APNS first then APNS send push notification to iOS devices.
If user 'A' do any action then that specific action will be transferred/send to staging/production server via apis. Based on your business logic staging/production server will send push notification to users(FCM token).
I hope this is helpful or you can explain the exact issue your are facing.
I am trying to send notifications to users when something happens in their account, for example a new friend request or follower, or a tag in an image. I have been looking into Firebase FCM to make this happen but can't figure out how to send push notifications to just 1 user, based on some activity in their account.
Is there any way this can be done in FCM or are there are any other methods out there to make this happen? I'm new to iOS dev and push notifications, so any help will be greatly appreciated!
Thanks!
PS: If I do need to make my own server for this, could someone point me to any resources to do this in python? I've seen quite a few posts for APNs servers in PHP, but I don't know PHP that well.
The easiest way is to use Firebase Cloud Functions , I have experience working with it using Javascript then trigger the function when something changes in database. You can also send a http request with the specific device token which you want a push notification to be delivered to, then the function will do it's magic for you. Firebase have ready to use samples from their Github repo.
NB: - For your case if you really want to use Python then check this answer it might help you get started.
I'm looking for some guidance.
I'm using Firebase as the backend server for an app I'm building and I would like to alert users when somebody has either liked or disliked some content the user generated.
I understand that Firebase offers cloud messaging through which I can target very specific users and send updates to them; I have implemented that functionality. However, I would like to send updates based on changes in the database, and, as far as I understand, FCM is not built for this purpose.
I have come across OneSignal and it seems promising. Has anybody implemented this with Firebase and could it do what I'm looking for?
Thanks!
I have it set upon such a way that when a message is send by a user to another user, a notification is also send via OneSignal. You just need to store the OneSignal userId in a node with the firebase user UID.
I you like someone's content, then that would also send a notification out directly to the other user.
I am creating demo for private chat using Firebase sdk. I am using this github demo. From this I am able to do chat but how can I get notification when my app is closed and someone send me message on it.
I am not able to find any solution after doing lots of RnD in Firebase, so please help me if anybody knows it solution.
I am building a phonegap based app and trying to update and manage the push notification badge in it. At this point of time, what I have checked all over SO the solution seems to be in either passing the value in 'aps' payload in our server code or in one of the methods that we have in AppDelegate.(I have done this both and found it to be working)
However, what I want to know is to how to keep a real time update of the number of notifications received/read by the user so as to update the app icon automatically?
I believe it is related to our server code, but I would really appreciate a detailed example/explanation on how to get this done as I have been struggling to get this work for a full week now.
P.S: I have checked almost all the links related to badge in iOS in Stack Overflow but have not found something with enough code or example to get this working successfully.
Thanks.