deltachat / notifiers

Notify devices
Apache License 2.0
6 stars 0 forks source link

enable default sound for push notifications #21

Closed r10s closed 9 months ago

r10s commented 9 months ago

nb: i just guessed the syntax as i could not find documentation for DefaultNotificationBuilder, and also could not test the PR ;)

this PR sets the sound of the notification to "default".

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

link2xt commented 9 months ago

Documentation is here: https://docs.rs/a2/latest/a2/request/notification/struct.DefaultNotificationBuilder.html

r10s commented 9 months ago

Documentation is here: https://docs.rs/a2/latest/a2/request/notification/struct.DefaultNotificationBuilder.html

thanks! somehow i was search in python land, lots of confusions with all these languages and parts :) thanks a lot for keeping an overview :)