Push Notification in iOS with Firebase

Khoa Pham
Indie Goodies
Published in
3 min readAug 9, 2018

--

This applies to Firebase 4.0.4. If you want to test push notifications, you can use my app PushNotifications

Preparing push notification certificate

Go to Member Center -> Certificates -> Production

Certificate

You can now use 1 certificate for both sandbox and production environment

Auth Key

Configure push notification

  • Go to Firebase Console -> Settings -> Project Settings -> Cloud Messaging -> iOS app configuration
  • If you use certificate, use just 1 Apple Push Notification service SSL for both fields
  • If you use Authenticate Key, fill in APNS auth key

Adding pod

In your Podfile, declare

pod 'Firebase/Core'
pod…

--

--