Skip to content

Commit

Permalink
notification support (#166)
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisK00 authored Jan 4, 2024
1 parent 77f1026 commit 18d2379
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
2 changes: 2 additions & 0 deletions subtrack.MAUI/MauiProgram.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
using subtrack.MAUI.Shared.JsInterop;
using subtrack.MAUI.Utilities;
using System.Globalization;
using Plugin.LocalNotification;

[assembly: InternalsVisibleTo("subtrack.Tests")]

Expand All @@ -21,6 +22,7 @@ public static MauiApp CreateMauiApp()
.UseMauiApp<App>()
.ConfigureFonts(fonts => fonts.AddFont("OpenSans-Regular.ttf", "OpenSansRegular"));

builder.UseLocalNotification();
builder.Services.AddMauiBlazorWebView();
#if DEBUG
builder.Services.AddBlazorWebViewDeveloperTools();
Expand Down
6 changes: 6 additions & 0 deletions subtrack.MAUI/Platforms/Android/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,10 @@
<application android:allowBackup="true" android:icon="@mipmap/appicon" android:roundIcon="@mipmap/appicon_round" android:supportsRtl="true"></application>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.INTERNET" />

<uses-permission android:name="android.permission.WAKE_LOCK" />
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
<uses-permission android:name="android.permission.VIBRATE" />
<uses-permission android:name="android.permission.SCHEDULE_EXACT_ALARM" />
<uses-permission android:name="android.permission.POST_NOTIFICATIONS" />
</manifest>
1 change: 1 addition & 0 deletions subtrack.MAUI/subtrack.MAUI.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@
<ItemGroup>
<PackageReference Include="CsvHelper" Version="30.0.1" />
<PackageReference Include="Humanizer.Core" Version="2.14.1" />
<PackageReference Include="Plugin.LocalNotification" Version="10.1.8" />
</ItemGroup>

<ItemGroup>
Expand Down

0 comments on commit 18d2379

Please sign in to comment.