Skip to content

Releases: thudugala/Plugin.LocalNotification

v11.1.4

08 Jul 07:54
Compare
Choose a tag to compare

#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

05 Jun 12:03
Compare
Choose a tag to compare

Added ios notification action icon support

v11.1.2

14 Apr 02:47
Compare
Choose a tag to compare
  1. #490 Android: If the sound file is not stored as an Android resource correctly in the raw folder, an exception is triggered.
  2. 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

26 Feb 06:50
Compare
Choose a tag to compare

Made LocalNotificationCenter Platform methods public so they can be used in native apps.

v11.1.0

21 Feb 07:56
Compare
Choose a tag to compare

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

29 Jun 13:25
Compare
Choose a tag to compare

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

27 Jun 12:50
Compare
Choose a tag to compare

Fixed #427 Notifications are not generated either on Real Phones or Simulators iOS when NotificationReceiving is not set

v10.1.6

17 Jun 00:12
Compare
Choose a tag to compare

Fixed

#419 Error when I try to compile the samples
#417 Notification Tapped not working on iOS / Xamarin.Forms
#414 Notification Receiving not working on iOS when in foreground

v10.1.5

20 May 01:45
Compare
Choose a tag to compare

Fixed notification cancel issue.
Fixed AssemblyMetadata IsTrimmable is set to True now.

#377 #395 #366 #383 #384 #380

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" />

v10.1.4

04 Mar 09:50
Compare
Choose a tag to compare

Fixed #365 NotificationActionTapped Only Returns ReturningData From Last-Added Notification