You’ll need to register your app with Firebase to enable features like Push notifications, analytics, and login SMS in your app. To register the app, you would first need to create a Firebase project. Follow the steps below to learn how to create a project on your Firebase account:
Registering a key
A key can be generated which gives the FCM full access over the Apple Push Notification service (APNs). On the “Keys” menu item, register a new key. The name of the key can be anything, however you must ensure the APNs service is enabled:
Click “Continue” & then “Save”. Once saved, you will be presented with a screen displaying the private “Key ID” & the ability to download the key. Copy the ID, and download the file to your local machine:
The file & Key ID can now be added to your Firebase Project. On the Firebase Console, navigate to the “Project settings” and select the “Cloud Messaging” tab. Select your iOS application under the “iOS app configuration” heading.
Upload the downloaded file and enter the Key & Team IDs
Go to your Firebase project settings -> Cloud Messaging and get token as shown below: Server Key
Enable phone Authentication: