Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Disable iOS 10 Quick Actions Widget

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?

like image 445
jroschen Avatar asked Sep 18 '16 13:09

jroschen


1 Answers

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>
like image 167
1024kilobyte Avatar answered Oct 07 '22 12:10

1024kilobyte