Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iOS Today Extension: can this be dynamically enabled and disabled from within my app?

By default, a today extension appears in the extension list for my app as soon as the app is installed.

What I'd like to know is - is there a way, documented or undocumented, that this can extension be enabled or disabled dynamically? By disabled, I mean that it won't even appear in the list of extensions if the user tries to add it.

Hacky answers are OK if necessary, I'd really like to be able to do this.

like image 989
Jordan Smith Avatar asked Jan 09 '15 01:01

Jordan Smith


1 Answers

It doesn't look like it. The exact mechanism for populating that list is not documented, but it appears that if an app bundle contains a valid, properly signed today extension, that extension appears in the user's list.

To make it disappear then, you'd have to somehow rename or move the extension bundle, or break its code signature. That might be possible with a jailbroken device, but otherwise you can't modify the contents of your app bundle at run time.

like image 58
Tom Harrington Avatar answered Nov 07 '22 00:11

Tom Harrington