Skip to main content

notify

Function notify 

Source
pub fn notify(
    ctx: &Ctx,
    player: i64,
    title: String,
    body: String,
    game: Option<String>,
    collapse: Option<String>,
)
Expand description

Tell player’s devices something, in the background (never fails the caller). collapse: a later alert with the same id replaces this one.