Skip to content

Add method to change notification sound#705

Open
Jianbe-03 wants to merge 2 commits intoNativePHP:mainfrom
Jianbe-03:Add-method-to-change-notification-sound
Open

Add method to change notification sound#705
Jianbe-03 wants to merge 2 commits intoNativePHP:mainfrom
Jianbe-03:Add-method-to-change-notification-sound

Conversation

@Jianbe-03
Copy link

This pull request adds support for sound notifications and silent mode to the Notification system. These changes allow notifications to specify a custom sound and to be marked as silent, providing more flexibility in how notifications are delivered and displayed.

New notification features:

  • Added sound and silent properties to the Notification class, allowing notifications to specify a sound and whether they should be silent.
  • Implemented sound() and silent() methods in the Notification class to set these new properties.
  • Updated the show() method to include sound and silent in the notification payload.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant