Search code examples
ioscocoa-touchtoday-extension

Check if app's today widget is installed


How to check if a Today Widget that comes with the app is installed or not...

If the user doesn't have the widget installed, i would like to present him a intro how to install it


Solution

  • Conceptually, have your iOS app check for the presence of some flag that's only added once the Today extension is activated.

    NSUserDefaults is a fine way to accomplish this — you'll need to use App Groups to accomplish data sharing.