test gprs test gprs - 2 months ago 5x
Swift Question

APNS Save Notifications

I am working on

notifications with
. I can send and receive notifications. I want to save this notifications on phone. For example my apps receives daily temperature status notification via
and this message like "temp: 25C 16.08.2016". I want to save this message in phone user defaults when notification receive. When user want to see past temperatures i want to show list include notification messages. List like;

16.08.2016 25C

15.08.2016 26C

14.08.2016 21C


You can get it in AppDelegate in application:didReceiveRemoteNotification: method from userInfo.