Questions tagged [devicecheck]

41 questions
62
votes
12 answers

Can we check the device to be smartphone or tablet in Flutter?

I am actually trying to figure out if the app is running on a smartphone or tablet in my flutter app but the package device_info can only tell about the device but not whether the device is a smartphone or tablet. Is there a way we can do this by…
Mahi
  • 5,726
  • 13
  • 31
  • 41
9
votes
0 answers

DeviceCheck - How to handle multiple apps on same device

As per DeviceCheck API documentation and WWDC video, DeviceCheck bits are per device and per teamID So how can we handle these scenarios? If we have multiple apps with trial promotional offer and uploaded under same teamID, DeviceCheck bits will be…
Dhaval Panchal
  • 2,529
  • 1
  • 25
  • 36
7
votes
1 answer

DeviceCheck: Unable to verify authorization token

I’m trying to get DeviceCheck to work, where I keep getting this response from Apple’s server: 401 Unable to verify authorization token. The device_token is being sent to my python server over a base64 encoded string in JSON payload. Any ideas what…
6
votes
2 answers

DeviceCheck API - Unique Identifier for the iOS Devices?

When using the device check, it Generates the new token every time like below, Generated Token :…
HariKarthick
  • 1,369
  • 1
  • 19
  • 47
5
votes
2 answers

How to generate apple authorization token/client secret?

How can I generate an authorization code/client secret in python for apple sign in and device check?
ARR
  • 2,074
  • 1
  • 19
  • 28
3
votes
0 answers

Devicecheck Expo bare workflow

I'm struggling with how to implement/use devicecheck and app attest on iOS with expo bare workflow. I googled a lot with no luck. The only thing I found was this git repo: https://github.com/dayitv89/react-native-ios11-devicecheck But I couldn't get…
Niroda
  • 320
  • 1
  • 3
  • 13
3
votes
0 answers

Not getting response in Ios device check api in for JWT with ES256 Algorithm in php

I am working with JWT token with algorithm ES256 using PHP to check devices for IOS And successfully create JWT (JSON web token) for it. I have tried to call API for device check through the postman API:…
3
votes
1 answer

Facing issue while generating Authorization bearer token for DeviceCheck API in swift

I'm working on DeviceCheck. To generate JSON web token & I'm using SwiftJWT library. But I don't know how I generate JWT for DeviceCheck. Code: let contents = try String(contentsOfFile: filepath) let headers = Header(kid: key_id) struct MyClaims:…
Vikram Chaudhary
  • 580
  • 4
  • 14
3
votes
2 answers

iOS DeviceCheck API - GenerateToken gives error Code 0

I'm trying to implement the new iOS 11 DeviceCheck API (https://developer.apple.com/documentation/devicecheck), but token generation always fails. I've tried on simulator and iPhone SE, with wifi and mobile data. Apple ID in settings is my normal,…
Miles Ressler
  • 31
  • 1
  • 5
2
votes
2 answers

Can't get debug token for Firebase App Check for my Flutter iOS App

So I recently started setting up app check for my existing Flutter project (for both android and iOS platforms). I've had no problem with android's "Play Integrity", got the necessary debug token, and can successfully send and retrieve data to/from…
Cedric
  • 470
  • 6
  • 20
2
votes
0 answers

Understanding Firebase App Check rejection

My project use Firebase App check on iOS using DeviceCheck & App Test, cloud functions have enforcement checking wether auth context.app is undefined or not, simply like: if (appCheckEnabled == true && appCheckFunctions[functionName] == true) { …
2
votes
1 answer

Validate EC SHA 256 signature in .net without bouncy castle

I am implementing Apple's App Attestation service. As part of the process, i receive a EC key and a signature. Sample key: -----BEGIN PUBLIC…
zaitsman
  • 8,984
  • 6
  • 47
  • 79
2
votes
0 answers

DeviceCheck: Unable to verify authorization token C#

I am trying to call the Apple DeviceCheck API from an ASP.NET Core API. To do so I need to create a JWT. I use Jose and BouncyCastle lib for that. I tried 2 different key creations and got each time a 401 (Unable to verify authorization token) HTTP…
Ulysse
  • 41
  • 6
2
votes
1 answer

Does Apple DeviceCheck still work on a jailbroken iPhone?

Simple question, no biggie. I'm trying to secure a React-Native application by validating tokens on the backend that were generated by Android SafetyNet and Apple DeviceCheck. I then create an access token to the API after the device passes the…
Dr. Div
  • 951
  • 14
  • 26
2
votes
0 answers

Missing or incorrectly formatted device token payload while generating jwt in php for unique iOS device

I wanna generate code to identify unique iOS device with server side php code. unable to get the right response from api. I'm getting 200 http response but getting "Missing or incorrectly formatted device token payload"
Baljinder
  • 43
  • 1
  • 7
1
2 3