Я использую push sharp для создания удаленного уведомления. Но я получаю уведомление с заголовком и кнопками View/Close.Push sharp Notification with Title and View Close Buttons
Я использую код адаптированного Here
Вот как я создаю мое уведомление
AppleNotificationAlert alert = new AppleNotificationAlert();
alert.ActionLocalizedKey = "View Alert";
alert.Body = message;
alert.AddLocalizedArgs(new object[] { "title", "Test Title"});
pushBroker.QueueNotification(new AppleNotification() .ForDeviceToken(deviceToken).WithAlert(alert).WithBadge(1).WithSound("sound.caf").WithCustomItem("level", level).WithContentAvailable(1));
Я также попытался просто указав тело оповещения следующим образом, но он не показывает View/кнопки Закрыть
pushBroker.QueueNotification(new AppleNotification() .ForDeviceToken(deviceToken).WithAlert("Alert Body").WithBadge(1).WithSound("sound.caf").WithCustomItem("level", level).WithContentAvailable(1));