Creates a new push notification for the user.

Syntax
.notificationCreate(/data/)

Arguments

Field nameTypeDescription
data
object Options to be modified in the notification. 
title
string
A title for the notification.
message string
Message for the notification.
buttons
array of object
Buttons for the notification. 
label
string Label for the notification button.
analysis
string
[optional]
analysis_id for the notification button. This analysis is ran when the button is pressed.
url string
[optional]
URL for the notification button. Opens a link when the button is pressed.
color
string
[optional]
Color of the notification button. Accepts hexadecimal colors, like: ‘#bcbcbc’. 

Returns {Promise<JSON>}