Are scheduled UILocalNotifications part of iOS device backup?

£可爱£侵袭症+ 提交于 2019-12-30 08:33:09

问题


I mean, our app schedules a couple of local notifications. User makes a backup of the system and restores it on a new device. Will previously scheduled local notifications fire on the new system, or do we need to reschedule them again on the new system?


回答1:


Finally I forced myself to do the test. The result:

YES - scheduled local notifications are part of backup, this means they are restored and scheduled on the new device. The restore overwrites any previously scheduled local notifications for the same app on the target device. Even icon badge number is preserved in backup and restored to the new device - showed on the icon.




回答2:


I think that can be restore/copy to new device, or maybe you have to use new device to test this workflow ...



来源:https://stackoverflow.com/questions/7500445/are-scheduled-uilocalnotifications-part-of-ios-device-backup

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!