Notification in Chat app using Firebase - ios

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.

Related

How to go about IOS Push Notifications?

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.

Sending an Image in iOS Push-Notifications through Firebase Cloud Messaging Console

I am sending push-notifications to my iOS app users through Firebase Cloud Messaging Console. After I input the image URL, the image is displayed on the preview. But, after I publish the notification, I am not able to see the Image in the push-notification. Can anyone please help me to resolve this issue? Appreciate your help🙏
You need to implement Notification Service Extension as it shown where: https://docs.leanplum.com/docs/adding-images-to-push-notifications#ios-setup

Flutter Push with firebase_messaging => get all Topics

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

Send Notifications from code Firebase

i am making an application that uses Firebase as the backend and swift in xcode. What i have is i can add products to the database and users can view and see those products. But what i want to do is that whenever i add a new product i want to send notifications to all registered users. How can i achieve that? I have seen tutorials and Firebase's own documentation but all these send notifications via Firebase console. How can i achieve this through swift code? I am using Swift 3.0 and xcode 8.3.2. Please let me know how can i achieve this.

How to make notification appear when someone comes online in Facebook app

I'm trying to make a tweak with theos to the Facebook app so that when a certain person comes online (defined by the user) a notification shows saying they came online.
Is there anyway of doing this for an iPhone/iPad/iPod and if so, how?
Thanks for reading

Resources