Skip to content

Commit

Permalink
enable default sound for push notifications
Browse files Browse the repository at this point in the history
sound or vibration can be disabled or changed by the user,
but without specifying a sound in the APS json,
there will be never a sound and the user won't be able to enable one.

expected APS json syntax is described at
https://developer.apple.com/documentation/usernotifications/generating-a-remote-notification
  • Loading branch information
r10s committed Mar 2, 2024
1 parent 7874c0e commit f8fa39f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ async fn notify_device(mut req: tide::Request<State>) -> tide::Result<tide::Resp
.set_title_loc_key("new_messages") // Localization key for the title.
.set_body("You have new messages")
.set_loc_key("new_messages_body") // Localization key for the body.
.set_sound("default")
.set_mutable_content()
.build(
device_token,
Expand Down

0 comments on commit f8fa39f

Please sign in to comment.