-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
馃悰 [FIREBASE_APP_CHECK] Cant get this to work with ios #6457
Comments
@febg11 Hey I am having the same problem with android, mind sharing how you got that working. I followed the docs but no luck. (I haven't tried iOS yet but will check that too) |
The thing that made android work for me is removing all sha1 keys from firebase and the app key on the credentials page on gcp. Make sure that no key restrictions are set aswell. Let me know if this works and if you have any luck with iOS |
@febg11 have you tried re-downloading and integrating your iOS apps Google Services plist file since you added Apple configs to the Firebase Console? |
@febg11 unfortunately I am unable to get it working on both android and iOS. But do try what Salakar commented might help out. I know this might be a dumb question but when it says pass in a jwt token how do I do that, I already have a jwt token from my gRPC server. I just want to authenticate using firebase's custom token. Also, this is my callable function, is this the correct way of doing it?
|
I'm not sure I'm best to answer any of these questions. Your android code looks like it's working though. Notice the App:Valid log. I think this means the app check token was from a valid device I haven't used custom tokens before so Im not too sure about the rest of this. You get the same errors as me for iOS. We probably need a flutter Dev to help with these problems @Salakar the iOS app key has always been used it's just not working with app check. I will double check and generate a new one later today and let you know if it makes any difference |
not work on Web |
@Salakar just tried downloading the googleservices.plist again and its contents are the same as the one I am already using |
Somehow got this working on iOS. Honesty not sure whats different |
@febg11 I know this is too much to ask but do you mind sharing with me the android and iOS folders (without the plist and json files ofc). I think I am messing up the platform integrations, as I have no mainActivity.java instead using mainActivity.kt |
got this working on iOS today (Note: i only have App Attest enabled in Firebase, not Device Check), Steps i was missing:
Reference: https://firebase.google.com/docs/app-check/ios-app-attest |
@seanyyyyyy How does one build a flutter app through xcode? |
open up the Runner.xcworkspace file in the ios directory, choose your target device/simulator and press the Run button |
Do you have like a step by step list I can follow to generate the token ? |
They have fixed it |
I just bought an apple dev license and have generated an api key with device check enabled.
I have uploaded this to firebase and added the team ID/key ID.
I have then made sure my signing profile is my new account. I have ran flutter clean and pub get. I also deleted the app from my device. I have opened the workspace in xcode and have let it build. It still doesn't authenticate
[firebase_functions/unauthenticated] Unauthenticated
[firebase_storage/unauthenticated] User is unauthenticated. Authenticate and try again.
I have tried adding
pod 'Firebase/AppCheck'
to the pod file and running pod install as per this doc https://firebase.google.com/docs/app-check/ios but i doubt that is needed with the flutter lib.Is there something I am missing? Maybe something i need to do in xcode so it allows device check calls?
The text was updated successfully, but these errors were encountered: