naresh kolindala
naresh kolindala

Reputation: 159

How to send push notification to a specific user using Google Firebase in iOS?

I need to deliver a push notification to a specific device using FCM (Firebase Cloud Messaging). How to send the notification in Objective C?

If somebody know any tutorial then give me the link.

Thanks in advance.

Upvotes: 1

Views: 2138

Answers (1)

Haroun SMIDA
Haroun SMIDA

Reputation: 1116

  1. Add the pods that you want to install, Download a GoogleService-Info.plist file from Firebase console.
  2. Upload your APNs certificate to Firebase.
  3. register your app for remote notifications. Call registerForRemoteNotifications.
  4. Retrieve the current registration token, call: NSString *refreshedToken = [[FIRInstanceID instanceID] token];
  5. Finally, You use that token to send the notification from Firebase console.

For better clarification, see documentation

Upvotes: 1

Related Questions