The product team loves PUSH notification. Now they want us to keep a history of ALL push notifications ever sent to the user and provide a list of them so the user can scroll back and see past notifications.
My problem is how can I capture every PUSH notification sent to a given user, and present them in a list to the user? I can't just capture them in the app and save them locally to coreData (or whatever) - the app will never see the notifications unless it happens to be running when it arrives.
One thought was that we could build our own web form for sending push notifications. Then, each time our Admin sends a PUSH via this form, we make a copy in our database, and then our app can access this database (via an API) and display a list of notifications, even including those which the user may not have seen ever for one reason or another.
But then I realized that this will break if we want to use any kind of audience segmenting (tags for example). We need to be able to send our targetted push notifications, which might end up being sent to 1000 out of our 50,000 user base. How can I serve these notifications via our database if I don't know which users should be getting them!
Has anyone else tried to impelment something like this? How did you do it?
has anyone any brilliant ideas about how to actually do this? Please speak up!