Swift 5 Firebase Push Notifications

Steps to setup firebase push notifications by using Swift 5:

Step 1: Create a project called “PushNotification” or any project name that you would prefer.Then must exit Xcode!!!

Step 2: Go to your app folder and then install CocoaPods

Step 3: To edit Podfile

Step 4: pod init

Step 5: pod install

Step 6: Add coding to “AppDelegate.swift” file:

Step 7: Drag the GoogleService-Info.plist into Xcode

 

Project fails with “Non-portable path to file ‘<protobuf/Any.pbobjc.h>'”

error which is due to Podfile is treating all warnings as errors.

Just remove the prefix and the error will go away

<Protobuf/     >

 

error

Print Friendly