Using Push Notifications, you can send messages to your users even when they are not using your application. For example, when you launch a new product or give a discount to products you can inform your customers with push notification and it will appear on the Notification bar on iOS and Android. This will increase the retention and engagement of users with the app.
Step 1: a) Go to https://firebase.google.com/ and create an account in Firebase.
b) Click ‘Go to console’ then select Create New Project.
Step 2: Give a project name and create a project.
Select a Firebase account and click on Create Project.
Now your project is ready. Click on Continue.
Step 3: Now, we will get a window like below. Select the Android symbol.
Step 4: When you click on Android, a window appears. Enter the details ( package name, Go to Dashboard ⇒ Api Credentials ⇒ copy package name and paste it in the space provided) here and click Register.
Download the Config file. Click Next and skip for steps 3 and 4 (add firebase SDK and Run your app to verify installation).
Step 5: This config file has to be uploaded.
Go to Dashboard ⇒ Update App ⇒ Addons ⇒ Enable Push Notification ⇒ Upload the file (Android) ⇒ Submit
Step 6: You will get a window like the above. Do the same steps as you did with Android.
Download Config file and upload it in the Addons ⇒ iOS
Now you can see two apps in Firebase.
Step 7: Click on the Settings > Project Settings > Cloud Messaging.
Step 8: Copy the Server Key from the Settings page of the Firebase console and paste it in the addons page.
Step 9: Go to Dashboard ⇒ Settings ⇒ Orders ⇒ FCM server key ⇒ paste here the server key also.
Step 1: Login to Apple developer account at https://developer.apple.com/account/
Step 2: Go to https://developer.apple.com/account/ios/authkey/create
Goto Certificates, Identifiers & Profiles ⇒ Keys ⇒ Create Key
Step 3: Enter Key Name as “Push Notification” and check APN’s and then click Continue.
Copy the key ID and keep it safe and download the file (Important!)
Step 4: Go to https://console.firebase.google.com/ and select your project.
Goto Project ⇒ Project Overview ⇒ Project Settings ⇒ in APN’s Authentication Key
Upload the file you downloaded before.
Enter the Key ID here, you copied before and the team ID will get from developer Account.
You will get the Team ID from here.
———- END ———-