Closed abasahmed closed 2 years ago
@abasahmed
You seem to be on very old version of the framework, Channel stable, 2.10.2,
. Current version is 3.3.2 which you should upgrade to, to get latest features offered by plugins.
Also, it isn't exactly clear what's the error could be, may or may not be related to firebase auth plugin but more of code implementation or config / setting issue.
I suggest you to ask this question on support channels like StackOverflow for further resolution.
Closing from here.
Bug report
Describe the bug My app is developed with flutter and firebase Auth My app has been uploaded 10 times before and the reviewers reject it because of this reason Guideline 2.1 - Performance - App Completeness
We continue to see the same bug in your app. Specifically, an activity indicator kept spinning indefinitely when we attempted to login with the demo credentials provided. Please review the details below and complete the next steps.
Review device details:
Device type: iPhone OS version ios 16.0
I think this is because it does not send a request to Firebase to request a verification code (OTP)
and i was do this:
and apple team provide me this screenshot:
### Steps to reproduce
my code is:
Click To Expand
``` **AppDelegate.swift** import UIKit import Flutter import GoogleMaps import Firebase import FirebaseMessaging import GoogleMobileAds @UIApplicationMain @objc class AppDelegate: FlutterAppDelegate { override func application( _ application: UIApplication,didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { GMSServices.provideAPIKey("AIzaSyB4fSpdG4cDkjB8-L_ntu8l443eMjb9FYE") FirebaseApp.configure() GADMobileAds.sharedInstance().start(completionHandler: nil) GeneratedPluginRegistrant.register(with: self) if #available(iOS 10.0, *) { UNUserNotificationCenter.current().delegate = self as? UNUserNotificationCenterDelegate } return super.application(application, didFinishLaunchingWithOptions: launchOptions) } override func application(_ application: UIApplication, didReceiveRemoteNotification userInfo: [AnyHashable : Any], fetchCompletionHandler completionHandler: @escaping (UIBackgroundFetchResult) -> Void) { let firebaseAuth = Auth.auth() if (firebaseAuth.canHandleNotification(userInfo)){ print("7777777777777777777777777777777777777777777777777777777777777777") print(userInfo) return } } override func application(_ application: UIApplication, didRegisterForRemoteNotificationsWithDeviceToken deviceToken: Data) { //new let firebaseAuth = Auth.auth() firebaseAuth.setAPNSToken(deviceToken, type: AuthAPNSTokenType.unknown); Messaging.messaging().apnsToken = deviceToken //------- print("Token: \(deviceToken)") super.application(application, didRegisterForRemoteNotificationsWithDeviceToken: deviceToken) } } **DART** import 'dart:developer' as developer; import 'dart:math'; import 'package:car_seller/components/colors.dart'; import 'package:cloud_firestore/cloud_firestore.dart'; import 'package:firebase_messaging/firebase_messaging.dart'; import 'package:firebase_phone_auth_handler/firebase_phone_auth_handler.dart'; import 'package:flutter/material.dart'; //import 'package:car_seller/screens/home_screen.dart'; import 'package:car_seller/widgets/custom_loader.dart'; import 'package:car_seller/widgets/pin_input_field.dart'; import '../services/checkUserData.dart'; import '../utils/helpers.dart'; class VerifyPhoneNumberScreen extends StatefulWidget { static const id = 'VerifyPhoneNumberScreen'; final String phoneNumber; const VerifyPhoneNumberScreen({ Key? key, required this.phoneNumber, }) : super(key: key); @override StateAdditional context
Can any one help me?
Flutter doctor
Run
flutter doctor
and paste the output below:Click To Expand
``` Doctor summary (to see all details, run flutter doctor -v): [✓] Flutter (Channel stable, 2.10.2, on macOS 11.6 20G165 darwin-x64, locale en-EG) [✓] Android toolchain - develop for Android devices (Android SDK version 32.1.0-rc1) [✓] Xcode - develop for iOS and macOS (Xcode 13.2.1) [✓] Chrome - develop for the web [✓] Android Studio (version 2021.1) [✓] VS Code [✓] Connected device (2 available) [✓] HTTP Host Availability • No issues found! ```Flutter dependencies
Run
flutter pub deps -- --style=compact
and paste the output below: Dart SDK 2.16.1 Flutter SDK 2.10.2 car_seller 3.3.5+47dependencies:
dev dependencies:
transitive dependencies:
Click To Expand