From Clomosy Docs

No edit summary
No edit summary
Line 74: Line 74:
<h2> See Also </h2>
<h2> See Also </h2>
* [[Clomosy_Class#Notification_&_Messaging_System | Notification & Messaging System]]
* [[Clomosy_Class#Notification_&_Messaging_System | Notification & Messaging System]]
{{#seo:|description=Learn about Notifications in Clomosy. Easily integrate push notifications to keep users informed and engaged in your mobile apps.}}

Revision as of 14:51, 23 December 2024

Notifications are messages sent by applications to convey information or provide a warning about something. The notification feature is a message sent to the notification center to be displayed in the designated notification area of the application, and it may vary depending on the platform.

SendNotification

It is used to send a notification to a selected user in the project. In this feature, the GUID of the user to whom the notification should be sent must be entered as the last parameter.

Example

var
  bodyStr, titleStr,userGUID:string;
{
  titleStr = 'Clomosy Information';
  bodyStr ='Hello, a personalized notification has been sent to you via the Clomosy application.';
  userGUID = 'WMCLUUP921'; // The given GUID is an example GUID.
  
  if Clomosy.SendNotification(titleStr, bodyStr, userGUID)
    ShowMessage('Notification sent.')
  else
    ShowMessage('Notification could not be sent.');
}

SendNotifyAllUsers

It is used to send notifications to everyone except for specific individuals. In this feature, if there is a user who should not receive the notification, their GUID can be entered as the last parameter, enabling notifications to be sent to the others.

Example

var
  bodyStr, titleStr,userGUID:string;
{
  titleStr = 'Clomosy Information';
  bodyStr ='Hello, a personalized notification has been sent to you via the Clomosy application.';
  userGUID = 'WMCLUUP921'; // The given GUID is an example GUID.
  
  if Clomosy.SendNotifyAllUsers(titleStr, bodyStr, userGUID)  
      ShowMessage('Notification sent.')
  else
    ShowMessage('Notification could not be sent.');
}

See Also