AzureAms / TimetableApp.Uno

TimetableApp, now for all platforms
Other
6 stars 2 forks source link

Allow users to join from Notifications #7

Closed trungnt2910 closed 3 years ago

trungnt2910 commented 3 years ago

Now that notifications are working, we should add some buttons to allow joining from notifications! image
These buttons should look like the buttons in the red box above.

trungnt2910 commented 3 years ago

ToastNotification.Uno has just released its 0.1.0 beta and this issue can be fixed immediately. Note that ToastNotification is the only way to join classes now on non-WPF platforms, as we've just discovered a serious bug in Autojoin in #9.

trungnt2910 commented 3 years ago

We've unified the API of ToastNotification.Uno with the UWP community tookit's api, so sending a toast with actions is as simple as:

new ToastContentBuilder()
    .AddArgument("conversationId", 9813)

    .AddText("Some text")

    .AddButton(new ToastButton()
        .SetContent("Archive")
        .AddArgument("action", "archive")
        .SetBackgroundActivation());

For more details see the Demo App.

trungnt2910 commented 3 years ago

Fixed, check the latest builds.