6

In my app, I have a standard widget that comes with it. When I build with iOS 10, the widget is automatically included in the 3D Touch Quick Actions menu. This widget kind of duplicates the features of the Quick Actions that are already there. I would like to be able to hide this widget and only have the quick actions, but I cannot seem to be able to do that.

I tried using the plist value for the UIApplicationShortcutWidget and setting it to empty, but that doesn't work as the default widget then appears. I also tried setting it to an invalid value such as 'null' which then prevents a widget from appearing, but then the App Store rejects my app bundle with the following error.

Error 1: ​ITMS-90640​ - Invalid Info.plist value
Invalid Info.plist value. The value for key UIApplicationShortcutWidget must be the bundle identifier of a Today extension in the app.

Does anyone know of a workaround for this?

RK-
  • 12,099
  • 23
  • 89
  • 155
jroschen
  • 161
  • 2
  • 6

1 Answers1

2

In my case adding the Key Home Screen Widget of type String with the value nil to the plist removed the automatically loaded widget. As XML it looks like:

<key>UIApplicationShortcutWidget</key>
<string>nil</string>
1024kilobyte
  • 413
  • 4
  • 10
  • Were you able to upload your app to the App Store and get it approved with this change? – jroschen Oct 02 '16 at 00:48
  • This does not answer the question. – return true Oct 22 '16 at 14:30
  • @jroschen have you tried this? did it got approved? – Adam Bardon Oct 26 '16 at 18:37
  • 1
    @AdamBardon This was the initial approach I tried before posting here, and it got automatically rejected when I used `null` so I'm guessing they do automatic checking if this is a valid key. I opened a bug about this and Apple responded "You should design your widgets with the expectation that they can be visible in the home screen 3D Touch view." I'm guessing that they don't care about this. – jroschen Oct 26 '16 at 23:34
  • @jroschen Interesting. Thank you! You saved me a lot time from repeating the same process. – Adam Bardon Oct 27 '16 at 04:54