Here's the scenario: someone has my app open on their iPad Air 2. They open another app in Split View, say Safari. Then they activate my app's extension to share some content with my app. They wait for that content to appear in my app.
Normally I would use App Groups, save the data to a shared location, and check for it when the parent app activates. But in this scenario the app doesn't activate when the user returns to it—it was active the whole time. So unless I constantly check for new data it won't appear immediately in the parent app.
What's the best way to solve this? Is there a notification I can subscribe to? Maybe something that would fire when an NSUserDefault changes? Or do I need to use something like MMWormhole? https://github.com/mutualmobile/MMWormhole