Releases: thudugala/Plugin.LocalNotification
Releases · thudugala/Plugin.LocalNotification
v11.1.4
#507 Updated GooglePlayServices nuget
Thank you @Kebechet
Make sure to Add these Package Reference for android
<ItemGroup Condition="$(TargetFramework.Contains('-android'))">
<PackageReference Include="Xamarin.AndroidX.Fragment.Ktx" Version="1.8.1" />
<PackageReference Include="Xamarin.AndroidX.Lifecycle.Common" Version="2.8.3" />
<PackageReference Include="Xamarin.AndroidX.Lifecycle.LiveData.Core" Version="2.8.3" />
<PackageReference Include="Xamarin.AndroidX.Lifecycle.LiveData.Core.Ktx" Version="2.8.3" />
<PackageReference Include="Xamarin.AndroidX.Lifecycle.Process" Version="2.8.3" />
<PackageReference Include="Xamarin.AndroidX.Lifecycle.Runtime" Version="2.8.3" />
<PackageReference Include="Xamarin.AndroidX.Lifecycle.Runtime.Ktx" Version="2.8.3" />
<PackageReference Include="Xamarin.AndroidX.Lifecycle.ViewModel" Version="2.8.3" />
<PackageReference Include="Xamarin.AndroidX.Lifecycle.ViewModel.Ktx" Version="2.8.3" />
<PackageReference Include="Xamarin.AndroidX.Lifecycle.ViewModelSavedState" Version="2.8.3" />
</ItemGroup>
v11.1.3
v11.1.2
- #490 Android: If the sound file is not stored as an Android resource correctly in the raw folder, an exception is triggered.
- Added support request Schedule Exact Alarm
var permissionRequest = new NotificationPermission
{
Android =
{
RequestPermissionToScheduleExactAlarm = true
}
};
if (await _notificationService.AreNotificationsEnabled(permissionRequest) == false)
{
await _notificationService.RequestNotificationPermission(permissionRequest);
}
v11.1.1
v11.1.0
Only support .Net 8 MAUI
Now check, if possible, to Schedule the Exact Alarm before Scheduling the notification. Below permissions are optional now
<uses-permission android:name="android.permission.USE_EXACT_ALARM" />
<uses-permission android:name="android.permission.SCHEDULE_EXACT_ALARM" />
Now, in Android, Launch the App instead of posting the notification to the status bar.
v10.1.8
Fixed unable to reference in Xamarin Android issue
Fixed Request permission in Xamarin Android
Breaking Change for Xamarin:
Need to set MainActivity for LocalNotificationCenter for permission
LocalNotificationCenter.MainActivity = this;
public class MainActivity : global::Xamarin.Forms.Platform.Android.FormsAppCompatActivity
{
protected override void OnCreate(Bundle savedInstanceState)
{
.....
LocalNotificationCenter.MainActivity = this;
// Must create a Notification Channel when API >= 26
// you can create multiple Notification Channels with different names.
LocalNotificationCenter.CreateNotificationChannel();
.....
LoadApplication(new App());
.....
LocalNotificationCenter.NotifyNotificationTapped(Intent);
}
protected override void OnNewIntent(Intent intent)
{
LocalNotificationCenter.NotifyNotificationTapped(intent);
base.OnNewIntent(intent);
}
}
v10.1.7
v10.1.6
v10.1.5
Fixed notification cancel issue.
Fixed AssemblyMetadata IsTrimmable is set to True now.
Breaking Change:
UsesPermission must be set at the application level for Android
<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" />