Skip to content

v10.1.8

Compare
Choose a tag to compare
@thudugala thudugala released this 29 Jun 13:25
· 57 commits to master since this release

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);
	}
}