Hi,
When a push notification is received from APNs to iOS within the iPhone, how does iOS know which app to provide the notification payload to?
Is device token also handed over by the APNs to the iOS, and used by iOS to know the right app to which the notification payload belongs?
Apple developer information reg. Push Notifications only indicate that that Device token is included by the app server in its request to APNs, and is used by the APNs to identify the correct device to forward the notification to. It does not mention if the APNs also forwards the device token to iOS, and is used by iOS to identify the target app.
https://developer.apple.com/documentation/usernotifications/registering_your_app_with_apns
Thanks in advance! /Isaac