Warning: Reason support is experimental. We are looking for beta-tester and contributors.

Module Os_fcm_notif.Data

module Data : sig..end

type t

The type representing a data payload.

val to_json : t -> Yojson.Safe.t
val to_list : t -> (string * Yojson.Safe.t) list

to_list data returns the representation of the data as a list of tuples (data_key, json_value).

val empty : unit -> t

empty () creates an empty data value.

val add_raw_string : string -> string -> t -> t

add_raw_string key content data

val add_raw_json : string -> Yojson.Safe.t -> t -> t

add_raw_json key content_json data

module PhoneGap : sig..end

The Cordova plugin phonegap-plugin-push interprets some payloads defined in the data key.