using System; using gehGassi.LocalNotifications.Platforms; namespace gehGassi.LocalNotifications { public static class NotificationCenter { private static INotificationService _current { get { #if ANDROID return new NotificationService(); #elif IOS return new NotificationService(); #endif } } /// /// Platform specific INotificationService. /// public static INotificationService Current { get => _current ?? throw new InvalidOperationException("Plugin not found"); } } }