I have a tableView storing a list of notifications (retrieved from server). How can I check if the particular notification has been viewed by the user?
I was thinking of
1) storing the notification ids in NSUserdefaults and
2) check the retrieved notification list against the list in NSUserdefault at app launch,
3) if the notification does not exist in NSUserdefault, then notification == unread and badgeValueCount++.
However this seems highly inefficient and not scalable.
Can anyone advise a more efficient way of checking for unread items (and setting the badge with the unread count). Thanks!