test gprs test gprs - 1 year ago 105
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

Answer Source

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

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download