'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!



Solution 1:[1]

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.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Deepak Singh