From Clomosy Docs

No edit summary
No edit summary
 
(2 intermediate revisions by 2 users not shown)
Line 69: Line 69:


<div class="alert alert-info" role="alert" data-bs-theme="light">
<div class="alert alert-info" role="alert" data-bs-theme="light">
If you want to examine a sample application, there are examples on the [[Code Example]] page.
If you want to examine a sample application, there are examples on the [[Code Examples]] page.
</div>
</div>


<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:|title=Notification in Clomosy - Clomosy Docs}}
{{#seo:|description=Learn about Notifications in Clomosy. Easily integrate push notifications to keep users informed and engaged in your mobile apps.}}

Latest revision as of 13:10, 24 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