Push notification data not getting when app launched directly by clicking app icon

后端 未结 4 1390
攒了一身酷
攒了一身酷 2021-02-15 04:09

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

4条回答
  •  伪装坚强ぢ
    2021-02-15 04:54

    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).

提交回复
热议问题