public async Task Notification() { try { await Task.Delay(2000); INotificationHandler service = DependencyService.Get <INotificationHandler>(); service.CreateNotification("Test title", "Test content"); } catch (Exception ex) { System.Diagnostics.Debug.WriteLine(ex.Message); } }