Discovering your widget

In iOS, there are several places where people can see and use your widget. Most places where your widget is displayed look similar. They're basically all the same Today View, except they have minor modifications. The first place where your widget is shown is on the lock screen. If a user swipes right on the lock screen, they are presented with their widgets. Secondly, a user can swipe down from the top of the screen to see the Notification Center. Swiping right on this screen will present the same Today View that's presented on the lock screen. Finally, the Today View is available if the user swipes to the leftmost screen on their home screen.

There are quite a lot of places where users can discover and view your widget, but possibly the most interesting use case for your app is that users have been able to view the widget directly on the home screen ever since iOS 10. All they need to do is force-touch on your app's icon and the widget will pop right up:

The project runs fine, and we can find our widget in several parts of iOS, but doesn't it feel a bit silly to show a different quote for each of our targets? Other apps seem to be able to synchronize data in the extension and app just fine and it's safe to assume that they don't use some kind of web API to retrieve information.

If you were expecting a solution to this problem by now, you are absolutely correct to do so. We can fix this. We can share data between our application and our extension using a feature called App Groups.