Module Os_fcm_notif.Data
type tThe type representing a data payload.
val to_json : t -> Yojson.Safe.tval to_list : t -> (string * Yojson.Safe.t) listto_list data returns the representation of the data as a list of tuples (data_key, json_value).
val empty : unit -> tempty () creates an empty data value.
val add_raw_json : string -> Yojson.Safe.t -> t -> tadd_raw_json key content_json data
module PhoneGap : sig ... endThe Cordova plugin phonegap-plugin-push interprets some payloads defined in the data key. The following module defines an interface to these payloads. You can find the payloads list here: https://github.com/phonegap/phonegap-plugin-push/blob/v2.0.x/docs/PAYLOAD.md Be aware that if you use this plugin, all attributes must be added in the data object and not in the notification object which must be empty.