-
Notifications
You must be signed in to change notification settings - Fork 26.8k
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
Method swizzling problem on firebase_auth phone auth iOS #35267
Comments
+1 |
Why was this issue closed? |
Same issue here. I think this is very important as users cannot properly register now. |
Glad I'm not the only one facing this issue. I upgraded to newest stable 1.7.8 hotfix.3 yesterday and since then it doesnt work anymore. Unfortunately this is a major issue, users cant register any more. Flutter devs, can you help? :) |
Firebase's automatic swizzling code lives here: It seems likely that some change in the engine broke their swizzling, and it seems like we have two options:
The latter approach is in flutter/plugins#1826 but may result in warning emails being sent to firebase_auth users who aren't actually using the phone auth feature. |
Same problem here when upgraded to newest stable version 1.7.8-hotfix.3. |
The PR by @collinjackson is working, we can use it in the project in the following manner until the PR is merged in the main branch.
|
This isn't working for me. I've checked my setting, plist, profiles, I haven't changed anything and it worked before I updated to the new flutter version. |
@kaumudpa : May I ask you to check on another device on which the sms verification hasnt been tested yet? Reason I'm asking: Collin's PR does work on my testdevices where sms verification had worked before (and then stopped working with upgrade to latest stable). But when I try it on a new device, I get a "token mismatch" error. I triplechecked all my settings and went over all configuration steps, but with no success: "Token mismatch". I recreated my APNS token in Apple developer portal, so right now I am wondering whether I did something wrong or there is an issue with new devices. Again, thank you Collin for the PR and everybody involved in investigating this issue. :) |
I appreciate the help testing flutter/plugins#1826. (Unfortunately it's a bit tricky to test automatically.) The "token mismatch" issues might be due to type:FIRAuthAPNSTokenTypeSandbox versus type:FIRAuthAPNSTokenTypeProd. The official docs suggest always using prod so I've updated my PR to remove the #ifdef DEBUG and always use prod.
I'm happy to go ahead and merge flutter/plugins#1826 if there's a consensus that it's an improvement while we investigate the larger swizzling issues. Or if folks feel that I should revert flutter/plugins@b57627f let me know that too. Thanks. |
Update: I'm still getting the "token mismatch" error when running "flutter run --release" within AndroidStudio, even with your updated PR. |
I have the same issue here and this works perfect for me. Thanks @collinjackson. Im not sure if this is currently working in a version of |
You'll need to update your firebase_auth to version 0.11.1+8 to get the fix. |
I'm having the same problem with flutter doctor:
|
Same issue in Flutter v1.9.1+hotfix.2 . |
Hi, we are experiencing the same issue and I'm now trying to fix this since two days.. On Android everything seems to work just fine. iOS Simulator enters the reCaptcha verification which also works fine. However, on a real iOS device the verification code is never sent. Disabling background app refresh on iOS and thus forcing reCaptcha verification is also not working. The call to We use Any help or hints for where to look at next would be appreciated! We are currently moving away from the facebook account kit (already removed the dependencies), but I cannot publish a new release with firebase_auth as long as the sign up does not work seamlessly on all devices. |
Hi @ordsen @nizo-m , Have you found a solution? |
The same for me! I think I'll have to downgrade Flutter version just because of this... Really, really annoying... |
@collinjackson I think this issue need to be reopened... There's some people with this problem yet... |
After some time, we can solve this issue following this two docs: We configure the APNs how's described here. We also need to add some changes into App's Working with Flutter |
@emersonsiega I still get a token mismatch on phone authentication |
@Igalsr maybe we are talking about different errors... For me the error message is: This starts after upgrade from v1.5.4 to v1.7.8. |
@emersonsiega yes you are right, my error appeared at the same time so I thought I would try your solution as well. |
This issue has been moved to firebase/flutterfire#1102. Any further collaboration will be done there. |
@Igalsr @ordsen I think the token mismatch error happens when you test locally because firebase_auth looks for the production APNs but you are signing the app with a development profile. As a temporary workaround you can set the APNSTokentype for firebase to sandbox or unknown which would detect your APNs type based on your provisioning profile. You can use my forked fix here: Relevant commit: |
@ordsen |
What is your version of flutter and the firebase depedencies? |
@enzoftware |
Check the recommended versions for each firebase dependecies in https://github.com/FirebaseExtended/flutterfire For |
I did that too.. But it still doesn't work.. |
I solved this problem. It was related APN setting(SandBox Token) not version problem. |
@LeeLoHoon could you share what have you done to fix this? |
I am facing the same problem! Any hint of how to fix it? |
@dryaz |
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of |
I'm having an issue with firebase_auth verifyPhoneNumber on iOS.
I followed all requirements on documentation. APN works fine (FCM can be received). But whenever verifyPhoneNumber called, it always fail with exception message:
I did pod upgrade to firebase_auth 6.3.0 and flutter to 1.7.11-pre43
still got the same problem. Android build works fine.
The text was updated successfully, but these errors were encountered: