Drutol / MALClient

Not so small client app for Myanimelist.net - Windows 10 UWP & Android
GNU General Public License v3.0
354 stars 32 forks source link

Universal Dismiss/Notification Linking for UWP (Desktop and Mobile)? #166

Open AzureKitsune opened 7 years ago

AzureKitsune commented 7 years ago

Hello there.

I have MALClient installed on both my PC and my phone. Since you haven't disabled notification mirroring, I get duplicate notifications on my PC whenever a new anime is added to the MAL database.

Newer UWP apps (as of the Anniversary update iirc) can set a property on their Toast Notifications called "RemoteID" which helps the system identify notifications and merge them. This is usual for universal dismissal and is likely a one line change in your application.

img

I have attached some documentation for the feature below:

AzureKitsune commented 7 years ago

In fact, you could set the Id (defined in MalNotification.cs, line 17) as the RemoteId in NotificationsBackgroundTask.cs on line 186.

Drutol commented 7 years ago

Hello, sorry for late reply. First of all sorry for UWP app being a bit outdated.

If it's just matter of this id, sure no problem.

I hope to play with new UWP acrylics blurs etc. soon so I'll try to update it then :)

Guerra24 commented 6 years ago

Again... a couple months later(7 actually...), I did implement this but hasn't been confirmed that it works.