Trigger action in application B from application A

Consider the following scenario. Two iOS apps are in the same app group, Alice and Bob. Alice is a Manager app, and Bob is a Chat app.


Alice is responsible for communication with the server, so even if (the user of) Bob receives a (text) message, the server would only notify Alice. Considering Bob is in the background state, how could Alice wake up Bob, so that Bob can update its content and schedule a local notification?

Replies

If Bob is suspended in the background, there is no good way for Alice to force it to resume.

Share and Enjoy

Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"

Thank you for your answer.


Would you see a solution for this scenario, or would you change the architecture of the system altogether?

Would you see a solution for this scenario, or would you change the architecture of the system altogether?

The latter. In the iOS architecture, apps are expected to work as apps, that is, a program that’s primarily user facing [1]. Trying to bend that architecture to get an app to provide a system service is going to result in all sorts of headaches.

Share and Enjoy

Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"