Skip to content

Commit 29d575a

Browse files
committed
Revert "Switched to Notifications library and 14393"
This reverts commit 055c9d0.
1 parent 055c9d0 commit 29d575a

File tree

8 files changed

+18988
-32529
lines changed

8 files changed

+18988
-32529
lines changed

BackgroundTaskComponent/BackgroundTaskComponent.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<AssemblyName>BackgroundTaskComponent</AssemblyName>
1212
<DefaultLanguage>en-US</DefaultLanguage>
1313
<TargetPlatformIdentifier>UAP</TargetPlatformIdentifier>
14-
<TargetPlatformVersion>10.0.14393.0</TargetPlatformVersion>
14+
<TargetPlatformVersion>10.0.10240.0</TargetPlatformVersion>
1515
<TargetPlatformMinVersion>10.0.10240.0</TargetPlatformMinVersion>
1616
<MinimumVisualStudioVersion>14</MinimumVisualStudioVersion>
1717
<FileAlignment>512</FileAlignment>

BackgroundTaskComponent/ToastNotificationBackgroundTask.cs

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
using Microsoft.QueryStringDotNET;
2-
using Microsoft.Toolkit.Uwp.Notifications;
2+
using NotificationsExtensions.Toasts;
33
using System;
44
using System.Collections.Generic;
55
using System.Linq;
@@ -98,20 +98,14 @@ private void SendToast(string message)
9898
{
9999
Visual = new ToastVisual()
100100
{
101-
BindingGeneric = new ToastBindingGeneric()
101+
TitleText = new ToastText()
102102
{
103-
Children =
104-
{
105-
new AdaptiveText()
106-
{
107-
Text = "Background Task Completed"
108-
},
109-
110-
new AdaptiveText()
111-
{
112-
Text = message
113-
}
114-
}
103+
Text = "Background Task Completed"
104+
},
105+
106+
BodyTextLine1 = new ToastText()
107+
{
108+
Text = message
115109
}
116110
}
117111
};

BackgroundTaskComponent/project.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"dependencies": {
3-
"Microsoft.NETCore.UniversalWindowsPlatform": "5.2.2",
4-
"Microsoft.Toolkit.Uwp.Notifications": "1.1.0",
3+
"Microsoft.NETCore.UniversalWindowsPlatform": "5.0.0",
4+
"NotificationsExtensions.Win10": "10240.0.6",
55
"QueryString.NET": "1.0.0"
66
},
77
"frameworks": {

0 commit comments

Comments
 (0)