Module Os_fcm_notif.Options
type tThe type representing an option.
val to_list : t -> (string * Yojson.Safe.t) listto_list option returns the representation of the options as a list of tuples (option_name, json_value).
val create : string list -> tcreate registered_ids creates a new option where registered_ids is the ID of mobile devices you want to send the notifications to.
val add_raw_json : string -> Yojson.Safe.t -> t -> tadd_raw_json key content_json data
add_to to options specifies the recipient of a message.
The value must be a registration token, notification key, or topic. Do not set this field when sending to multiple topics.
add_condition condition options specifies a logical expression of conditions that determine the message target.
add_collapse_key collapse_key options identifies a group of messages (e.g., with collapse_key: "Updates Available") that can be collapsed, so that only the last message gets sent when delivery can be resumed.
module Priority : sig ... endThis modules defines a type for priorities for the notifications. See https://firebase.google.com/docs/cloud-messaging/concept-options#setting-the-priority-of-a-message
val add_priority : Priority.t -> t -> tadd_priority priority options sets the priority of the message.
add_content_available value options. On iOS, if value is set to true, an inactive client app is awoken. On Android, data messages wake the app by default.
add_time_to_live time_in_seconds options specifies how long (in seconds) the message should be kept in FCM storage if the device is offline.
add_restricted_package_name package_name options specifies the package name of the application where the registration tokens must match in order to receive the message.