Skip to content

Frequently Asked Questions

Elvin (Tharindu) Thudugala edited this page Jul 3, 2019 · 13 revisions

Enabling D8 causes Build to fail.

It's a Xamarin.Android Bug https://github.com/xamarin/AndroidSupportComponents/issues/168

Could not install package 'Plugin.LocalNotification'. You are trying to install this package into a project that targets '.NETPortable,Version=v4.5,Profile=Profile111'

Only support .Net Standard 2, does not support Xamarin PCL.

No alert sound or ring when notification appears

Check your device settings like 'Vibration intensity' and 'Notification volume'. In iOS, sound is only played when app is not in foreground.

What happens when notification Id is same for 2 notifications shown at the same time ?

Your second notification with the same notification id will replace the first one. Use different number ranges, if you want to see 2 notifications at the same time. Prefix notification id.

Do I need to cancel notifications ?

No. But in Android if you set the NotificationRequest.Android.AutoCancel to false then you have to cancel it manually.

Why no support for Android 8.1 ?

dependency Xamarin.Android.Arch.Work.Runtime only support Android 9+

[Plugin.LocalNotification] No platform plugin found. Did you install the nuget package in your app project as well?

Set Android Target Framework to Andoid 9+

Error CS0117: 'NotificationCenter' does not contain a definition for 'NotifyNotificationTapped' (CS0117)

Set Android Target Framework to Andoid 9+