Disable iOS 10 Quick Action Widget

In my application, I have a standard widget that comes with it. When I create using iOS 10, the widget is automatically included in the 3D Touch quick menu. This widget duplicates the quick action features that already exist. I would like to be able to hide this widget and perform only quick actions, but it seems I can not do this.

I tried using the plist value for UIApplicationShortcutWidgetand set it to empty, but this does not work when the default widget appears. I also tried setting it to an invalid value, such as "null", which then prevents the widget from appearing, but then the App Store rejects my application package 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?

+4
source share
1 answer

In my case, adding a Home Screen Widgettype key Stringwith a value nilto plist removed the automatically loaded widget. Like XML, it looks like this:

<key>UIApplicationShortcutWidget</key>
<string>nil</string>
+1
source

Source: https://habr.com/ru/post/1654982/


All Articles