Skip to content
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

firebase_auth: <iOS after update to latest version phone auth returns invalid-app-credentials> #13284

Open
1 task done
tdujmic opened this issue Sep 6, 2024 · 8 comments · May be fixed by #13338
Open
1 task done
Labels
blocked: customer-response Waiting for customer response, e.g. more information was requested. Needs Attention This issue needs maintainer attention. type: bug Something isn't working

Comments

@tdujmic
Copy link

tdujmic commented Sep 6, 2024

Is there an existing issue for this?

  • I have searched the existing issues.

Which plugins are affected?

Core, Auth

Which platforms are affected?

iOS

Description

After manage to initialize firebase app in main of my existing app and updated plugins to latest versions under flutter 3.24.1
I tried to send a normal verifyphonenumber request but I receive always error code invalid-app-credentials ??

Reproducing the issue

FirebaseApp app = await Firebase.initializeApp(
  options: DefaultFirebaseOptions.currentPlatform,
);
FirebaseAuth _auth = FirebaseAuth.instanceFor(app: app);






await _auth.verifyPhoneNumber(
  phoneNumber: parsedNumber.toString(),
  verificationCompleted: (PhoneAuthCredential credential) async {
    print('verification completed '+ credential.toString());
  },
  verificationFailed: (FirebaseAuthException e){
    print('verification error '+ e.code);
  },
  codeSent: (String verificationId, int? resendToken) async {
          print(verificationId.toString());

  },
  codeAutoRetrievalTimeout: (String verificationId) {
    print('Verification id ' + verificationId.toString());
  },

);

Firebase Core version

3.4.0

Flutter Version

3.24.1

Relevant Log Output

No response

Flutter dependencies

Expand Flutter dependencies snippet
Replace this line with the contents of your `flutter pub deps -- --style=compact`.

Additional context and comments

No response

@tdujmic tdujmic added Needs Attention This issue needs maintainer attention. type: bug Something isn't working labels Sep 6, 2024
@ignacioss
Copy link

I have the same issue

@SelaseKay
Copy link
Contributor

Hi @tdujmic , thanks for the report. Are you experiencing this on an actual device or a simulator?

@SelaseKay SelaseKay added the blocked: customer-response Waiting for customer response, e.g. more information was requested. label Sep 9, 2024
@panicoli0
Copy link

We experienced the same issue, but it started working 2 days after setup.

@tdujmic
Copy link
Author

tdujmic commented Sep 10, 2024

@SelaseKay yes I experienced that on my phisical iPgone 15 Pro Max and my coueague iPhone 11 Pro means its something with parameters providing by plugin to firebase servers, or we need maybe to take some more actions with removal of old type of integration used on flutter versions 3.16 or 3.22, I have checked our firebase account plan and is upgrades from spark since firebase phone auth is not free from 1st of September. But this doesn't help. Have to try lot of times to dovnload and refresh Google Service info plist file, start flutterfire reconfigure recheck params in info plist but no use.
Couple of minutes ago have to test it last time and still get the same error message. App is initialised properly, all ID's presented in firebase app options dump before I send validatephone request.

If you need soem more info just post the message or contact me over email, Im available for some workshop session too if is needed. Just let me know please.

Thanks in Advance

@google-oss-bot google-oss-bot removed the blocked: customer-response Waiting for customer response, e.g. more information was requested. label Sep 10, 2024
@SelaseKay
Copy link
Contributor

Kindly share your plugin versions

@SelaseKay SelaseKay added the blocked: customer-response Waiting for customer response, e.g. more information was requested. label Sep 10, 2024
@tdujmic
Copy link
Author

tdujmic commented Sep 10, 2024

@SelaseKay there you are. Its a part of my pubsec.yaml :

cloud_firestore: ^5.4.0
firebase_storage: ^12.2.0
firebase_auth: ^5.2.0
firebase_core: ^3.4.0

firebase_messaging: ^15.1.0
firebase_database: ^11.1.1
firebase_analytics: ^11.3.0

firebase_core_platform_interface: ^5.2.1

Flutter version is 3.24.1

@google-oss-bot google-oss-bot removed the blocked: customer-response Waiting for customer response, e.g. more information was requested. label Sep 10, 2024
@SelaseKay
Copy link
Contributor

Kindly try the solutions described here. Please let me know if it was of help.

@SelaseKay SelaseKay added the blocked: customer-response Waiting for customer response, e.g. more information was requested. label Sep 10, 2024
@heshesh2010
Copy link

@SelaseKay hello ,

I have tested the solutions and still got same error [firebase_auth]: IOS real device invalid-app-credential #13330

@SelaseKay SelaseKay linked a pull request Sep 16, 2024 that will close this issue
10 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocked: customer-response Waiting for customer response, e.g. more information was requested. Needs Attention This issue needs maintainer attention. type: bug Something isn't working
6 participants