Peter Lapisu
Peter Lapisu

Reputation: 20995

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

Upvotes: 2

Views: 1221

Answers (1)

Chris Droukas
Chris Droukas

Reputation: 3196

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.

Upvotes: 4

Related Questions