Daily iOS
App lifecycle and system

Sandbox and sharing data between apps

Your main app, a widget, and a Share Extension all have to use the same login session and cache database. How would you share data between apps and extensions on the same team?

How would an interviewer hear this answer? You'll see whether they'd move on, dig in, or say no, and which sentences would trip you up. Your score doesn't change.
See the short answer

Share through an App Group container (files, the database, a UserDefaults suite) and a Keychain Access Group (the token). With another company's app, only paths that involve the user are possible: a URL scheme or Universal Link, the pasteboard, or a Share Extension.

Share a question