-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[🐛] AppCheck's .activate() does not return a Promise on iOS #6052
Comments
Hey @birdofpreyru 👋 - nice to see you over here. Sorry about this, I believe you are exactly right - I need to add the resolve/reject parameters to the ios native module method signature here and resolve it at the end so that the ios platform is consistent with android like it should be react-native-firebase/packages/app-check/ios/RNFBAppCheck/RNFBAppCheckModule.m Lines 39 to 52 in 471b4be
|
Ok - I've altered the e2e test to more thoroughly probe the return value there and now I've got the e2e test failing as it should be vs the current false positive for the ios platform. I'll have a fix shortly |
previously iOS was not returning a promise, but Android was, documentation was for a Promise to be returned Fixes #6052 - Thanks to @birdofpreyru
previously iOS was not returning a promise, but Android was, documentation was for a Promise to be returned Fixes #6052 - Thanks to @birdofpreyru
Issue
According to the docs
.activate()
returns a Promise. It does so on Android, however it seems to return nothing on iOS. At least, I ended up with such code block in my app:which works fine on Android, but on iOS it crashes with the error:
Sure, not a big trouble to workaround, as per docs it is not needed to call it on iOS at all, but still a bug, I believe.
Project Files
Javascript
Click To Expand
package.json
:# N/A
firebase.json
for react-native-firebase v6:# N/A
iOS
Click To Expand
ios/Podfile
:# N/A
AppDelegate.m
:// N/A
Android
Click To Expand
Have you converted to AndroidX?
android/gradle.settings
jetifier=true
for Android compatibility?jetifier
for react-native compatibility?android/build.gradle
:// N/A
android/app/build.gradle
:// N/A
android/settings.gradle
:// N/A
MainApplication.java
:// N/A
AndroidManifest.xml
:<!-- N/A -->
Environment
Click To Expand
react-native info
output:react-native-firebase
version you're using that has this issue:e.g. 5.4.3
Firebase
module(s) you're using that has the issue:e.g. Instance ID
TypeScript
?Y/N
&VERSION
React Native Firebase
andInvertase
on Twitter for updates on the library.The text was updated successfully, but these errors were encountered: