Earlier than we leap on to combine push notification utilizing Firebase messaging in iOS swift, you want few issues at your disposal to check iOS push notification. Under is the listing of issues required to combine and examine push notification integration in iOS.
iPhone gadget – Push notification didn’t work on simulator
Apple developer account – Apple developer account is required as a way to run app on iPhone gadget and establishing Auth key or certificates on firebase app console.
App on Firebase.(You need to use your gmail account to create an app on Firebase )
First open up Xcode and create a fundamental challenge(in case you are utilizing an present challenge then open it up). First step is to activate push notification capabilities for our app. Comply with under steps to activate push notification functionality in your iOS app.
Choose your challenge identify. See image for reference
Choose your app goal. Choose Signing and capabilities.
Click on on + Functionality.
Seek for Push notification and click on on searched outcome displaying Push Notification.
When you reached your Firebase console. Click on on Add Undertaking.
Enter your challenge identify. Click on Proceed.
Analytics is beneficial. Nevertheless it’s your alternative. For this tutorial, i made oi disabled.
Click on Create Undertaking. After few seconds Firebase challenge is created and you’re going to get message “Your new challenge is prepared,”. Click on on proceed.
Click on on iOS icon to start out process of including Firebase to your iOS app.
Including Firebase to iOS app
Copy bundle identifier from xcode challenge(Proven in under image), and add it to Firebase app bundle if textbox.
You may give nick identify to your app on Firebase and may add app retailer id for the app (if added to apple join). Each of those steps are non-compulsory. Subsequent we have to obtain .plist file supplied by Firebase and add that .plist named as “GoogleService-Information.plist” to your challenge. Lastly we have to add Firebase libraries to our xcode challenge. We are going to going to make use of cocoapods for our xcode challenge.