Notification.Send
-----------------

Sends a notification.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [Notification](component_Notification.md) | [2.6](newinversion26.md) | ✅ Yes | ✅ Yes | ❌ No | ✅ Yes, on macOS and Windows | ❌ No |

MBS( "Notification.Send"; NotificationName { ; Param1; Param2 } ) 

**MBS**( **"Notification.Send";** /\* Sends a notification. \*/  
**$NotificationName**; /\* The name of the notification.e.g. "de.mbsplugins.MyTestNotification" \*/   
**$Param1**; /\* Optional; A number to pass on Windows.  
For Mac in 7.3 plugins you can pass JSON here. \*/   
**$Param2**) /\* Optional; A number to pass on Windows. \*/ 

### Parameters

| Parameter | Description | Example | Flags |
|---|---|---|---|
| NotificationName | The name of the notification. | "de.mbsplugins.MyTestNotification" |  |
| Param1 | A number to pass on Windows.   For Mac in 7.3 plugins you can pass JSON here. |  | Optional      Added in version **7.2**. |
| Param2 | A number to pass on Windows. |  | Optional |

### Result

Returns "OK" or error message.

### Description

Sends a notification.  
This notification is delivered to all applications on the computer which register for receiving it.   
### Examples

Send notification on Mac with JSON payload:

 MBS ("Notification.Send"; "MyNotification"; "{\\"recordID\\":5}")  
### See also

- [Notification.List](NotificationList.md)
- [Notification.Listen](NotificationListen.md)
- [UNNotification.New](UNNotificationNew.md)

### Example Databases

- [Utility functions/Notifications/Notifications](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Utility%20functions/Notifications/Notifications.shtml#1GroupButton36.0000000420.000000061.0000000571.0000000LayoutObjectAnchor_)

### Blog Entries

- [MBS Filemaker Plugin, version 2.6pr7](https://www.mbsplugins.de/archive/2012-03-16/MBS_Filemaker_Plugin_version_2/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 18th August 2014 , last changed 14th May 2017

  
[Notification.Listen](NotificationListen.md) - [Notification.SendDirect](NotificationSendDirect.md)

[HTML Version](NotificationSend.shtml)