Можно ли увеличить значок приложения через локальное уведомление, пока приложение не запущено?
Я знаю, как установить значок, но не нашел способа увеличить это значение.
localNotification.applicationIconBadgeNumber = 23;
Обновление: Я нашел решение (далекое от идеального). Вы можете предсказать, что произойдет, если пользователь не откроет приложение и не добавит уведомления для каждого события +1.
Пример:
- В течение 1-го дня: Count = 0
- За день 2: localNotification.applicationIconBadgeNumber = 1;
- На третий день: localNotification.applicationIconBadgeNumber = 2;
- За день 4: localNotification.applicationIconBadgeNumber = 3;
== > Поместите эти уведомления в массив и установите их до выхода приложения.
Однако я ищу лучшее решение, чем это обходное решение.