iOS Push Notifications
Getting started
To set up push notifications, you need to complete the following steps:- Make sure you have completed all of the required steps in this guide
- Turn on push notifications in your project’s settings
- Set the push notifications on the client side.
Enabling the Push Notification Service
- Select your app target
- Click the Signing & Capabilities tab
- Click the + Capability button.
- Type “push notifications” in the filter field
- Press Enter


Asking for User Notifications Permission
There are two steps to register for push notifications:- Get the user’s permission to show notifications
- Register the device to receive remote notifications
Add this line just before return:
Handling push notifications
You AppDelegate need to use UNUserNotificationCenterDelegate to receive a push notification.This class was already assigned as UNUserNotificationCenter delegate above.
Add the following code for
Swift or extend the class in the case of Objective-C:
Handling push notifications interaction
Use a following function to handle user tapping on the push notificationHandling push notifications in foreground
In case you need your app to show a push notification in foreground, add this function:Let’s prepare notifications for Qonversion Automations
Android Push Notifications
Notification types
Firebase Cloud Messaging offers two message types: data messages and notification messages. Qonversion uses data messages to send push notifications on Android. This allows handling notifications in the foreground and background app states and defining what happens upon notifications being pressed.Handling push notifications
1 Create a notification channel
You have to register your app’s notification channel in the system to deliver notifications on Android 8.0 and higher.2 Create a service
Create a service that extends FirebaseMessagingService to receive and handle notifications from Firebase.📘 AndroidManifest.xml Don’t forget to include YourFirebaseMessagingService in the manifest file.
3 Create and show notifications
Override the onMessageReceived() method to create and show notifications. Provide the channel id, set the notification content you want and finally show the notification withNotificationManagerCompat.notify().
📘 The code below is just an example for displaying a notification. You can edit it according to your needs. You can also check the official Android push notifications documentation.