From Clomosy Docs
Please test it on a mobile device.
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.
Information:
To access the user GUID information in the developer environment, the following steps can be followed.
In the developer environment, click on the name of the user included in the project member list, and a screen like the one below will appear. Here, when you click on the GUID information, the GUID is copied and accessed.
![]()
SendNotification
function SendNotification(TitleStr, BodyStr, UserGUID :String):Boolean;
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
function SendNotifyAllUsers(TitleStr, BodyStr, WithoutUsers :String):Boolean;
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.
The GUID of a single user can be entered.
- Clomosy.SendNotifyAllUsers('Clomosy', 'Clomosy Notif', '5F81K4U84J');
The GUIDs of multiple users can also be entered.
- Clomosy.SendNotifyAllUsers('Clomosy', 'Clomosy Notif', '5F81K4U84J ,DO5625ARP8');
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.');
}
If you want to examine a sample application, there are examples on the Code Examples page.