Replies: 2 comments 32 replies
-
Hi there! You have chosen a difficult goal, if I am understanding the current state of firebase-ios-sdk + react-native-firebase AppCheck capabilities. First, here's the best documentation on what is available: ...of note is that they provide ProviderFactories for Debug tokens, and DeviceCheck tokens, but they do not provide an AppAttest provider factory, just the provider. Which leads you to me note-from-the-past here: ...where I am telling future-me or perhaps you "we need to write a custom factory for AppAttest" since apparently it's not provided and AppAttest isn't usable otherwise if I am understanding correctly So the implementation steps are:
The code I linked above holding the "TODO" here in our module is how you would initialize it, prior to calling Note that if you were interested in doing this, my real dream is that the iOS AppCheck initialization was "delayed" just a little bit since we are not able - in interpreted languages - to delay the call to Concretely what do I mean there? It would be idea if react-native-firebase implemented an AppCheckTokenProviderFacadeFactory or similar, and used an init provider (that somehow runs before AppDelegate app launched code with Now the dream is that within that facade, there was an implementation of a TokenProvider that was simply a facade we gave to the firebase-ios-sdk methods, and it delegated calls to the currently installed TokenProvider but allowed you to swap them via some APIs where javascript users could request (via an enum of strings or similar) the token provider factory they wanted, and it would include an AppAttestProviderFactory That's the full dream anyway. The direct implementation of your desire is to implement AppAttestTokenProviderFactory returning already-built AppAttestTokenProvider from firebase-ios-sdk, and install that |
Beta Was this translation helpful? Give feedback.
-
The debug provider does not work either. Do you think it could be because of the security rules I have set? I'll try to figure this out and keep you posted if I find a solution. Thanks @mikehardy! |
Beta Was this translation helpful? Give feedback.
-
I'm working on an app that supports iOS 14+ and it makes sense to use
App Attest
instead of defaultDeviceCheck
provider in App Check.From RNFB docs I can see that recommended way to do this is via calling native methods in AppDelegate.
I wanted to clarify how exactly this should be done i.e. which imports and methods need to be called? To start off, here is my current AppDelegate initialisation of firebase:
Ty, in advance
Beta Was this translation helpful? Give feedback.
All reactions