I'm reading about adding dynamic shortcuts to the homescreen for 3dTouch enabled devices. It essentially boils down to reading / writing to the shortcutItems
member array of UIApplication.sharedApplication
.
My question is: is this array persisted? If I close or remove the app - will the configuration of the shortcuts be kept?
In other words - how often should I set the desired shortcuts for my app? Once? On every launch? On every transition to the background?
It's persistent while your app is installed on device. You update it when you need to. If you have static shortcuts you can benefit from having them available right after your app is being installed on device, just include them in your Info.plist
under UIApplicationShortcutItems
.