Skip to content

Conversation

@Jianbe-03
Copy link
Contributor

This pull request adds support for sound notifications and silent mode to the Notification class. 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.

This addition does require an update to the electron repository, i made the changes for this pull request in here: NativePHP/electron#257

Copy link
Member

@simonhamp simonhamp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You'll need to bring the changes from NativePHP/electron#257 into this repository now, as they've been combined

@Jianbe-03
Copy link
Contributor Author

I have moved the changes made in NativePHP/electron#257 to the electron folder in this repository, i have also tested my changes in a demo app and they seem to work for me.

@simonhamp
Copy link
Member

@gwleuverink what do you think we should do with this yarn.lock file that is conflicting?

Copy link
Member

@simonhamp simonhamp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've spotted the docs PR - awesome.

I like this and the fact that it will bring cross-platform notification sound customisation, but I have some notes on the implementation.

@gwleuverink
Copy link
Collaborator

what do you think we should do with this yarn.lock file that is conflicting?

Can we merge main back to this branch & run npm update?

Copy link
Collaborator

@gwleuverink gwleuverink left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a great addition 👍🏻 Thanks @Jianbe-03! Could clarify a few questions in the comments?

@Jianbe-03 Jianbe-03 requested a review from gwleuverink October 30, 2025 09:35
@Jianbe-03
Copy link
Contributor Author

Every requested change should be implemented now, can this be verified so the branch can be merged? @simonhamp @gwleuverink

Copy link
Collaborator

@gwleuverink gwleuverink left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is great! Looking at the entire PR now I have one more recommendation. Are you up to adding that?

This might be the direction you were going before using that custom event. I def think it's helpful to show the dev why it's erroring

@Jianbe-03 Jianbe-03 requested a review from gwleuverink November 5, 2025 08:52
Copy link
Collaborator

@gwleuverink gwleuverink left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Thanks @Jianbe-03 !

Copy link
Member

@simonhamp simonhamp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work!

@gwleuverink
Copy link
Collaborator

codestyle workflow is failing (due to outside branch) all is green when running locally. will skip that check

@gwleuverink gwleuverink merged commit d78b252 into NativePHP:main Nov 6, 2025
28 of 29 checks passed
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.

3 participants