sendNotification

sendNotification

> Functions

Sends you a notification. It arrives at the end of the fight, among your other notifications, with a link to the fight, and can also go out as a push notification or an email depending on your settings for the Fight category. A good place to call it is often afterFight() (see Fight hooks), when the outcome of the fight is known.

At most 50 notifications per day, counted from midnight (Paris time) across all your fights, test fights included: the following ones are ignored. To keep this quota for real fights, check the context with getFightContext. The title and the message fit on one line: a line break becomes a space.

Parameters
Return