DrinkWaterUWP / DrinkWater

2 stars 0 forks source link

Code share or extend functionality #8

Closed houek closed 1 year ago

houek commented 1 year ago

Hi, first of all thank you for this program. I was supposed to write it myself as part of learning programming, but since the job is done, there's no point in reinventing the wheel. Would you share your code?

Or extend functionality for:

Regards

DrinkWaterUWP commented 1 year ago

share code

The app is now open source. Feel free to extend its functionality, and if you encounter any issues or bugs, please let me know.

add custom notification sound

I checked the Microsoft docs on how to add custom audio for toast notifications in a UWP app. It looks like the API only supports audio file sources from "ms-appx:///" and "ms-resource". These sources specifically refer to assets contained within the application package. This means that users can't choose and use their own audio files.

add pop-up notification in the center of the screen

It looks like the current API does not support this. The notification will always appear in the bottom-right corner of the screen.

add minimize to tray icon (now I don't know if application is running in background)

The app already has its own background task running in the background to handle scheduling notifications based on the user's settings. This means that even when the app window is closed, the background task continues to run. While minimizing the app to a tray icon is not a built-in feature of UWP apps, the background task ensures that the app's functionality remains active and notifications are delivered as expected.

pop-up with additional button "in a moment" - when clicked, causes the reminder to be postponed, e.g. for 5 minutes (defined in settings)

Because I want to keep the app simple and minimalistic, so I am not going to support this feature at this time. If you really want this feature, you are welcome to fork the project and contribute your own code.

add minimize to tray icon (now I don't know if application is running in background)

The app's background task is already triggered when you log into Windows. This means that the app will start automatically and begin scheduling notifications. The background task is also triggered every 15 minutes to ensure that notifications are always scheduled on time.

change duplicated phrase "Drink water" in notification

I have removed the duplicated title "Drink water" from the notification. I should have done this earlier, but I was used to seeing the duplicated words and overlooked the need to remove them.

Thank you for your feedback.