Unity Push Notifications

Push Notifications

Android

To use Push Notifications out of the box using CleverTap, add the following entries to your AndroidManifest.xml.

<application>
         ....
         ....
        <service android:name="com.clevertap.android.sdk.pushnotification.fcm.FcmMessageListenerService">
            <intent-filter>
                <action android:name="com.google.firebase.MESSAGING_EVENT" />
            </intent-filter>
        </service>

 </application>

Create Notification Channel

CleverTapBinding.CreateNotificationChannel("YourChannelId", "Your Channel Name", "Your Channel Description", 5, true);

Delete Notification Channel

CleverTapBinding.DeleteNotificationChannel("YourChannelId");

Create a Group Notification Channel

CleverTapBinding.CreateNotificationChannelGroup("YourGroupId", "Your Group Name");

Delete a Group Notification Channel

CleverTapBinding.DeleteNotificationChannelGroup("YourGroupId");

iOS

To set up and register for push notifications, proceed as follows:

  1. Set up push notifications for your app.
  2. Call the following from your CSS file.
CleverTapBinding.RegisterPush();

Did this page help you?