How to delete a Mobile Push Notification programmatically (based on entityName & recordId)?
Hi Team,
We are currently using the following server-side code to send Mobile Push Notifications in Creatio:
var userConnection = this.Get("UserConnection");
var pushNotification = new PushNotification(userConnection);
Dictionary additionalData = new Dictionary();
additionalData.Add("entityName", entityName);
additionalData.Add("recordId", recordIdStr);
pushNotification.Send(sysAdminUnitId, title, message, additionalData);On the mobile side, we are using the standard:
Terrasoft.configuration.PushNotificationReceiver
Now we have a requirement to delete or cancel a previously sent push notification based on:
entityNamerecordId
For example:
When a record is approved or completed, the related push notification should be removed from the mobile device.
However, we understand that Push Notifications are not stored in a database table like System Notifications.
Could someone please clarify If there is a supported way to cancel or remove a specific mobile push notification?
Any guidance or best practice would be greatly appreciated.
Thank you!
Like
Hello Puneeta Mehta,
Unfortunately, there is no supported way to cancel or delete a specific push notification.