I have app, that send notifications to user time to time. Some of them are extremly important, so I've set them as ongoing, so user can't delete them by swiping, they are deleted when user deletes them in app (or when the app is force stopped).
When I create this notification, I add object with some data (name, text, id and datetime of creation of the notification) to static List, it works. But when there is some important ongoing notification and user closes the application (goes to the list of active app via the left hw button and swipe-closes it), the static List of notifications is cleared.
So how can I:
- Save data (list of objects) until app is force-killed (so until the notification disappears)
OR
- Get collection of active notifications created by application (need name and id, and if possible even text)
Thanks
EDIT: If you know something about developing mobile apps in Java, you can help me by saying how would you do that in java, Xamarin is pretty similar to it, so if you do that, I think, I'd be able to find a way.