Search code examples
iosios103dtouchios10-today-widget

How to Enable Widget in Quick menu items in IOS 10


My app is using a single today widget. I want to get this on the quick menu items, like how apple is doing for notes, Photos etc.. and even third party apps like whatsapp also have it.

I hope it wont automatically enable it why because for all the third party apps which are having widget are not showing the widget on quick menu items.

I have tried this iOS 10 quick menu widget but no success.

BTW I am using xcode 7.3.1. And all the my quick menu items are dynamically created.

Please help me.


Solution

  • If you are using following thing's, it automatically show the widget on force touch or 3D touch: 1) deploy using xcode8 2) iPhone 6S or greater 3) if there is only one widget, then it will show by default but if its more than one, then you need define which one show in info.plist.

    Hope this will fix your issue. Try restarting your phone if it doesn't show.