I am trying to use Firebase for push notification. i have successfully installed the Firebase And Firebase messaging via Cocoapods>
You must call [[UIApplication sharedApplication] registerForRemoteNotifications]; to properly register for remote notifications.
Configuring Remote Notifications For Background Usage
Have you configured your app's background modes to accept remote notifications? You can do this by clicking: Project Name -> Capabilities -> Background Modes
Turn this on and then tick the box beside Remote Notifications as seen in the screenshot below.