Silent push notifications allow background updates without interrupting the user. They are automatically handled within the SDK but can be customized for specific use cases.
Android SDK
Default Handling
Silent push notifications are automatically processed by the SDK in the onMessageReceived method.
Custom Handling
If you have other notification systems or multiple sources, use the dengage.showdengagenotification function to check whether Dengage should display the notification.
If dengage.showdengagenotification returns false, you can add custom logic to distinguish the notification’s source and decide whether or not to show it.
Example:
override fun onMessageReceived(remoteMessage: RemoteMessage) { super.onMessageReceived(remoteMessage) // Check if the notification should be shown by Dengage if (DengageUtils.showDengageNotification(remoteMessage.data)) { ContextHolder.resetContext(context = this) Dengage.onMessageReceived(remoteMessage.data) } else { // Extract the payload from the notification val dataPayload = remoteMessage.data // Check for the custom identifier "source" val customSource = dataPayload["source"] if (customSource != null && customSource == "your_custom_source") { // Handle notification from your custom source handleCustomSourceNotification(dataPayload) } else { // Handle other cases if needed Log.d("CustomNotification", "Notification is not from the custom source.") } } }
iOS
On iOS, silent push notifications are automatically handled by the operating system. No extra configuration is needed.
How to Access and Enable Silent Push
Step 1: Navigate to Application Settings
Go to Settings > Integrations > Applications.
Step 2: Create or Edit an Application
To create a new application:
Click the New button.
Choose the application type (iOS, Huawei, or Android).
To edit an existing application:
Select an existing application from the list and edit.
Step 3: Enable Silent Push
Under the Push Notifications section, ensure that Push Notifications are enabled.
Check the Uninstall Tracking option to enable Silent Push.
iOS Uninstall Tracking
Android Uninstall Tracking
Huawei Uninstall Tracking
Step 4: Save Changes
Click Save to apply the settings.
When Uninstall Tracking is enabled under Push Notification, a silent push is sent at night. Devices that have uninstalled the app are detected during the nightly calculation, and their statuses are updated accordingly.
Requirements D·engage Application Definition - Required for configuring push notification settings. Access to your Website Files - Needed to add the Service Worker File and the Injection Script. D·engage Web SDK provides an interface that handles ...
D·engage provides below API endpoints to send subscription and events in Mobile SDK. Turkey - Istanbul Datacenter For api: https://tr-api.dengage.com For subscription: https://tr-push.dengage.com For events: https://tr-event.dengage.com For geofence: ...
Requirements Huawei Developer Account Java JDK installation package Android SDK package Android Studio 3.X HMS Core (APK) 4.X or later Huawei Device or Huawei Cloud Debugging Supports Android API level 4.4 or higher. Information Huawei AdID service ...
Requirements Google Firebase App Configuration Android Studio Android Device or Emulator D·engage Mobil SDK for Android supports version 4.4 (API Level 19) and later. D·engage Mobil SDK for Huawei supports all new versions. 1. Create Firebase App 1.1 ...
D·engage Mobile SDK enables you Mobile Device Subscription to D·engage Platform Mobile Notification Registration Mobile Notification Display (Text, Rich, Causel Mobile Push Messages) Tracking Mobile Pushes like Click events Tracking Marketing Events ...