Module Os_fcm_notif.Notification
This module provides an interface to create the JSON for the notification key.
type tThe type representing a notification
val to_json : t -> Yojson.Safe.tval empty : unit -> tempty () creates an empty notification
add_title title notification adds a title to push notification in the notification area. This field is not visible on iOS phones and tablets.
add_sound sound notification indicates a sound to play when the device receives a notification. See https://firebase.google.com/docs/cloud-messaging/http-server-ref for more information about the value of sound depending on the platform.
add_click_action activity notification adds an action when the user taps on the notification. On Android, the activity activity with a matching intent filter is launched when user clicks the notification. It corresponds to category in the APNs payload.
For Android devices, "FCM_PLUGIN_ACTIVITY" is mandatory to open the application when the user touchs the notification.
val add_raw_json : string -> Yojson.Safe.t -> t -> tadd_raw_json key content_json notification
module Ios : sig ... endmodule Android : sig ... end