Skip to content

PushMessageData

Types

t

type t = PushTypes.pushMessageData

Values

json

The json() method of the PushMessageData interface extracts push message data by parsing it as a JSON string and returning the result. Read more on MDN

let json: t => JSON.t

Parameters

t

Return type

Stdlib.JSON.t

text

The text() method of the PushMessageData interface extracts push message data as a plain text string. Read more on MDN

let text: t => string

Parameters

t

Return type

string