I am working on app which receives notifications(using apple push notifications). I am storing these notifications and showing as list in one controller. As far as I understand whenever notification is received didReceiveRemoteNotification is called. When app is in foreground and background I am able to store notification in Db from didReceiveRemoteNotification method. But when app is terminated how can I store notifications?
If user taps on notification when application is terminated I am able to store notification by using lauch options. But if user does not tap the notification when app is terminated how do I store the notification?