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

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e4bcd3-43b1e.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e4bcd3-43b1e.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?