I have a scenario in which app will get push notification and need to show that messages in home screen of my app, for that i saved the message array into user defaults from my
This is a common issue: if the user does not open your app by means of the displayed notification, there is no* way of getting the related information.
* A possible solution employed by many apps is to check with a remote server for unread notifications (e.g. check for an unset read-date field).