We have an application with multiple extension targets. We generate device check token using
DCDevice.current.generateToken API. However while trying to validate the device using devicecheck.apple.com/v1/validate_device_token from our servers, we get success for our extension targets but failure for our app target.
The transaction IDs are below
For App target's device check token:
26050657-fa98-4d2e-8e28-eb0e4005cf15
For extension target's device check token:
cfab83e0-8aa7-43e7-8343-f8baaec6ee651001
We assume this is because our main target has a different APPID prefix compared to our extension targets. Device validation API should not fail because the code signing is done from the same developer ID. Can you check on this?
Or Can we use the device verify token from our extension targets for validating the app since extension targets are a bundled with app target by design?
Please file a ticket to Feedback Assistant and include a link to this forum post. We can try and see why your particular requests to Apple servers are successful in some situations and not in others. If we find anything that will be helpful to other developers, then we will follow-up back on this forum thread for the benefit of everyone.
Edit: Added link to Feedback Assistant