Skip to content

Commit

Permalink
Merge pull request #526 from pbriand/notifications
Browse files Browse the repository at this point in the history
Ocsigen Start Notif Android
  • Loading branch information
Jan Rochel committed Jan 17, 2019
2 parents 1389f95 + 7ed853f commit 093412c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/os_fcm_notif.eliom
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,9 @@ module Data =

let add_soundname str t = add_raw_string "soundname" str t

let add_notification_channel_id id t =
("android_channel_id", `String id) :: t

let add_notification_id id t =
("notId", `Int id) :: t

Expand Down
6 changes: 5 additions & 1 deletion src/os_fcm_notif.eliomi
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,8 @@ module Data :
(** The type representing a data payload. *)
type t

val to_json : t -> Yojson.Safe.json

(** [to_list data] returns the representation of the data as a list of
tuples [(data_key, json_value)]. *)
val to_list : t -> (string * Yojson.Safe.json) list
Expand Down Expand Up @@ -222,9 +224,11 @@ module Data :
notification area instead of one. If a new notification has the same
ID as an older one, the new one will replace it. It is useful for
chats for example.
*)
*)
val add_notification_id : int -> t -> t

val add_notification_channel_id : string -> t -> t

module Style :
sig
type t = Inbox | Picture
Expand Down

0 comments on commit 093412c

Please sign in to comment.