13

I'd like to remove my apps Today Widget from appearing when 3D touching the app icon on the home screen because showing the quick actions and the Today Widget just doubles up the actions app provides (seen in screenshot). Is there anyway to hide widgets from the 3D touch quick actions using the Info.plist or some other method?

Thanks

3D touch quick actions and widgets screenshot

Léo Natan
  • 56,823
  • 9
  • 150
  • 195
Troy R
  • 426
  • 2
  • 16

3 Answers3

6

So, if you have multiple homescreen widgets, you can set UIApplicationShortcutWidget to determine which one should be shown. I haven't been able to find a way to disable them altogether from appearing in the 3d touch shortcut menu.

One option you may be able to try (this works for me on the simulator) is to set this value in your Info.plist to the value of nil.

<key>UIApplicationShortcutWidget</key>
<string>nil</string>

Your other option is to create a different widget, with more useful functionality, perhaps such as showing the currently running timer, or other stats.

Nick
  • 1,265
  • 12
  • 15
  • Hi Nick, would you please confirm that after adding above key in your plist. Your application got approval or not? Because, other answer saying that, Apple may reject the app because of this. I am having the exact issue for the app. – Hemang Nov 29 '16 at 08:26
  • 1
    My widget isn't ready for release, so it isn't part of my release build yet. From using this method in development though, I've become much more confident in the result. – Nick Nov 29 '16 at 13:07
  • 1
    @Hermang I can confirm that my app was declined (during the automated checks while submitting archive to iTunes Connect) for using nil value as `UIApplicationShortcutWidget`. Any other ideas? Image: http://imgur.com/a/x8AGU – owlswipe Jan 01 '17 at 01:25
  • 1
    Mark this as the accepted answer. Works for me on a device too. – Satheesh Jul 24 '17 at 12:36
2

Apple released this has a new feature, where user can see the handy information when force touching the App icon for shortcut items. I presume we cannot remove widget during 3D touch quick actions.

Yogesh Mv
  • 1,041
  • 1
  • 6
  • 12
  • Could you check other answers? Also, please share your experience if you tried this before. – Hemang Nov 29 '16 at 08:28
2

Unfortunately, there's now way to hide app widget. If you set UIApplicationShortcutWidget to nil, your app will get rejected.

Adam Bardon
  • 3,829
  • 7
  • 38
  • 73
  • Hi Adam, would you please confirm that after adding above key in your plist. Your application got approval or not? Because, other answer suggesting to do this stuff. I am in need of releasing my application. – Hemang Nov 29 '16 at 08:28
  • I haven't tried that myself... someone else confirmed that to me – Adam Bardon Nov 29 '16 at 08:42
  • Thanks for the quick response. If you have some guideline links or anything which can prove this. Also, FYI, I could see 2-3 apps which has done the exact things and they are live on AppStore. – Hemang Nov 29 '16 at 08:46
  • They did? Are you sure they have been updated for iOS 10? It works for old releases... Anyway I recommend you try it, review time is quit fast nowadays... – Adam Bardon Nov 29 '16 at 08:48
  • Oh yes, agree. Yes, they have done it for iOS 10 as well. Though I am thinking to give a try on the same. Thanks – Hemang Nov 29 '16 at 08:52
  • Please post here with result – Adam Bardon Nov 29 '16 at 08:53
  • @Hermang It was declined. See my comment under Nick's answer. – owlswipe Jan 01 '17 at 01:26