IOS notification message sound vibration on and off function how to achieve?

want to do a function like Wechat and qq that allows users to set whether the notification message prompts sound, vibrates, and displays the details of the message. How should it be implemented?

Apr.23,2021

this function needs to be implemented on the server side, and the iOS side only sets the push parameters to the server.
when a push event is generated, the server pushes according to the settings. Push options that can be controlled on the server side, including whether to vibrate, which sound to play, and the content of the message displayed

Menu