Hello, thank you for your answer. As far as I can tell, didUpdate in AppDelegate is not being called when my app is opened from the extension. Is this a bug, or am I missing something?
Edit: it looks like the correct func for AppDelegate is:
application(application: continue: restorationHandler:)
Thank you for the hint!