In the mobile applications you develop with Kuika, you can send Push Notifications to increase interaction with your end users and provide a enriched user experience. In order to send Push Notifications to your end users, you are expected to perform configuration settings specific to the operating system (IOS or Android) in the mobile application you have developed.
Let's take a closer look at how the configuration settings should be made for both operating systems.
Let's start with the IOS operating system.
- Open the Configuration Manager module in the application you are developing.
- If you have an existing configuration, open the relevant configuration. If you do not have an existing configuration setting, create a new configuration.
- Open the IOS tab in the configuration settings.
- Navigate to the Push Notification section in the IOS tab.
- Click the drop-down menu next to Settings.
- Click Add New.
On the screen that opens, it will be necessary to define some information to make Push Notification settings.
- Enter a descriptive name in the Name field on the screen and name the Push Notification configuration.
- For the Team Id field, use the Team Id in your Apple Developer account under the membership details.
- Kuika offers two different options for Publish Type.
- Production is the method used when you run the testing process through Testflight and publish the application.
- The Development option is used in scenarIOS where you can get the source code depending on the platform licensing and test the application in your Local and start the publishing process.
- Production option is recommended in your SaaS application development process with Kuika.
- In the Notification Certificate field, you are expected to upload the .P8 file from your Apple Developer account.
If you have not created the .p8 file before
- Open your .Apple Developer account.
- Open the Account page.
- Click on Keys under Certificates, IDs & Profiles.
- Create a new key by clicking the + icon on the screen that opens.
- Select Apple Push Notifications service (APNs) on the following screen.
- Click Continue to complete the certificate creation process and download the certificate.
- The .P8 file can only be downloaded once. Therefore, you should keep the downloaded file well.
- You can save the relevant configuration setting by uploading the .P8 file to the Notification Certificate field in Kuika configuration settings.
Now let's examine how Push Notification configuration settings are made for the Android operating system.
- Open the Android tab in the configuration settings.
- Go to the Push Notification section in the Android tab.
- Create a new configuration setting via the drop-down menu next to the Settings heading.
On the screen that opens, there is some information that we will define through Firebase to make Push Notification settings.
- Enter a descriptive name in the Name field and name the Push Notification configuration.
- Log in to your Firebase Console account to define the Sender ID information. If you have an existing project, click on the Project “Cloud Messaging” tab by clicking on the Gear/Settings icon next to the “Project Overview” title in the relevant project.
- On the following screen, you can find the Sender ID information under the Cloud Messaging API heading.
- If you do not have an existing project, you can create a new project in Firebase Console and follow the same steps and get the Sender Id information. Define the relevant Sender Id Information on the Platform.
- For current Android applications, you can upload the Service Account Json file without having to define the Server Key information.
- To upload the relevant Json file in the Service Account Json field, go to the “Service Accounts” tab in the settings of your project in the Firebase Console.
- In this tab, access the Google Cloud console by clicking on the Manage service account permissions title.
- On the screen that opens, find the Roles title in the left menu.
- Create a new role.
- Provide information entry on the role creation screen.
- Select General Availability in the role launch stage title.
- Click the Add Permissions button.
- Type cloudmessaging in the filter field.
- Make the relevant selection, press the Add button and complete the process by saying Create.
- Then go to the Service Accounts tab.
- Create a new Service Account.
- In the Service Account Detail heading, enter the application name and click Create and Continue.
- Under Grant this service account access to project, select the role you just created in the Custom category and click Continue
- Under the Grant users access to this service account heading, click the Done button without making a new definition.
- On the following screen, open the Manage Keys screen using the detail menu.
- Create a new key and select JSON.
- Upload the automatically downloaded JSON file to the Service Account Json field.
- In the Notification Certificate field, go to the Firebase Console to install the certificate file.
- Open your project
- On the project screen opened in Firebase Console, go to the settings page by clicking the Gear/Settings icon next to the “Project Overview” title from the left panel.
- In the “General” tab, download the file named “google-services.json” in the application. If you cannot view this field, you may not have created an application yet.
- Upload the .Json file you downloaded to the Notification Certificate field. After the upload process is complete, click the “CREATE” button.
With Kuika, it is very easy and fast to execute Push Notification configurations in your mobile application development process.