Questions tagged [devicecheck]
41 questions
0
votes
0 answers
Apple DeviceCheck and Unsafe legacy renegotiation disabled
I'm writing some PHP code in my server in order to use the Apple devicecheck service when getting a request from my iOS app. When testing locally (dev environment) everything seems to work fine, however when testing from my online host the…

fcollf
- 131
- 1
- 5
0
votes
1 answer
Xamarin.iOS DCAppAttestService.AttestKeyAsync(keyId, HashValue) failing with The operation couldn’t be completed. com.apple.devicecheck.error error 2
I am trying to use DCAppAttestService in Xamarin.iOS to attest a key generatd with GenerateKeyAsync() in a real iOS device, but it is failing with this error:
The operation couldn’t be completed. (com.apple.devicecheck.error error 2.)
Specified…

RADU
- 78
- 1
- 8
0
votes
1 answer
Not able to verify the validity of X509Certificate using Apples App attest root certificate
All I am able to do is validate the generated X509Certificate using its method checkValidity(), but as per the steps mentioned in https://developer.apple.com/documentation/devicecheck/validating_apps_that_connect_to_your_server, we have to validate…

Sandip Nepal
- 94
- 3
- 15
0
votes
2 answers
I am trying to decode and extract octet string from the extension of X509Certificate, but I did not get any valid string
I have been trying to decode the octet string as per steps mentioned in
https://developer.apple.com/documentation/devicecheck/validating_apps_that_connect_to_your_server?language=objc
Here is what I have tried:
X509Certificate cert1 =…

Sandip Nepal
- 94
- 3
- 15
0
votes
1 answer
Can iOS DeviceCheck token remains same across 2 apps if both app has different developer but has same SDK installed?
Hypothetically if App A and App B both share the common third party library ... can iOS devicecheck token remains same same when generated through that common SDK ?
Due to common SDK they will use same server to validating tokens with something…

Mihir Mehta
- 13,743
- 3
- 64
- 88
0
votes
1 answer
Uniquely identify iOS device with DeviceCheck API and server side php code not working
I'm getting error : Missing or incorrectly formatted payload
I'm generating device token from Apple DeviceCheck API in swift language with real device and also passing Transaction ID to this php api.
jwt token generating successfully with this code…

Baljinder
- 43
- 1
- 7
0
votes
0 answers
How to flag a hacker with Device Check
How can I flag an abuser and potential hacker's device, given the fact that it can only be done if the device sends a token?
We can wait for the user to send a request containing the token, until then act natural so the user won't suspect, then flag…

Hamoonist
- 2,286
- 3
- 19
- 36
0
votes
1 answer
How to get an unique ID using DeviceCheck API swift?
hope all are doing good. I am working on a device check API now how can I get a unique id when hit the apple server? When sending the device token from mobile to our server then Our server sends the query request to APN server like this:
{
…

HariKarthick
- 1,369
- 1
- 19
- 47
0
votes
0 answers
Token generation/encoding not working properly
So I'm using DeviceCheck to create a unique token per iOS device and send it to my server. The problem is, that the token I'm receiving seems to be much longer than expected (200+ characters).
Here's the code:
@IBAction func sendInfo(_ sender: Any)…

Slavic the Slavic
- 421
- 6
- 17
0
votes
1 answer
DeviceCheck API is setting bits independently of TransID
I search all question and tutorial available on Net, but not able to find any working solution.
I have checked the Apple documentation which is not explaining clearly.
DeviceCheck api for Query/validate will take: device_token, transaction_id and…

Sudhir kumar
- 659
- 5
- 21
0
votes
1 answer
DeviceCheck: Missing or badly formatted authorization token
I'm trying to implement a free trial mechanism using Apple's new DeviceCheck mechanism in iOS11. I've implemented the server part in RAILs 4. There's a fair bit of code, so I've put it in a gist:…

Jmf
- 407
- 3
- 9