Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/swift/20.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ios 颤振:如果禁用应用程序委派滑动,UIApplicationLegate收到的远程通知需要转发到FIRAuth';_Ios_Swift_Firebase_Flutter_Firebase Authentication - Fatal编程技术网

Ios 颤振:如果禁用应用程序委派滑动,UIApplicationLegate收到的远程通知需要转发到FIRAuth';

Ios 颤振:如果禁用应用程序委派滑动,UIApplicationLegate收到的远程通知需要转发到FIRAuth';,ios,swift,firebase,flutter,firebase-authentication,Ios,Swift,Firebase,Flutter,Firebase Authentication,当我想将sms auth与firebase一起使用时,该应用程序仅在iOS上失败 APN证书已经在firebase上配置好,并且FirebaseAppDelegateProxyEnabled在Info.plist中没有。verifyPhoneNumber方法期间发生错误 这是《颤振医生》 Doctor summary (to see all details, run flutter doctor -v): [✓] Flutter (Channel unknown, v1.7.0, on Mac

当我想将sms auth与firebase一起使用时,该应用程序仅在iOS上失败

APN证书已经在firebase上配置好,并且
FirebaseAppDelegateProxyEnabled
Info.plist
中没有。verifyPhoneNumber方法期间发生错误

这是《颤振医生》

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel unknown, v1.7.0, on Mac OS X 10.14.5 18F132, locale en-PE)

[✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
[✓] Xcode - develop for iOS and macOS (Xcode 10.2.1)
[✓] iOS tools - develop for iOS devices
[✓] Android Studio (version 3.4)
[!] IntelliJ IDEA Ultimate Edition (version 2019.1)
    ✗ Flutter plugin not installed; this adds Flutter specific functionality.
    ✗ Dart plugin not installed; this adds Dart specific functionality.
[✓] VS Code (version 1.36.1)
[✓] Connected device (1 available)
这是我的密码

void sendSms(String fullNumber) {
    FirebaseAuth.instance.verifyPhoneNumber(
      phoneNumber: fullNumber,
      timeout: Duration(minutes: 1),
      verificationCompleted: (AuthCredential phoneAuthCredential) async {
        _smsController?.add('loading');
        FirebaseUser firebaseUser = await FirebaseAuth.instance
            .signInWithCredential(phoneAuthCredential);
        _verifyUser(firebaseUser);
      },
      verificationFailed: (err) {
        print(err.message);
        print(err.code);
        _smsController?.add('UNKNOWN_ERROR');
      },
      codeSent: (verificationId, [forceResendingToken]) {
        _verificationId = verificationId;
        _smsController?.add('code_sent');
      },
      codeAutoRetrievalTimeout: (verificationId) {},
    );
  }
以及错误消息:

flatter:如果禁用了应用程序代理Swizzing,UIApplicationLegate收到的远程通知需要转发到FIRAuth的CanHandleNotification:方法。


flatter:verifyPhoneNumberError
解决方案:

我在Flatter存储库中找到,目前正在工作

将当前的
firebase\u auth
版本替换为

firebase_auth:
    git:
      url: https://github.com/collinjackson/plugins.git
      ref: 441417c2fed0ff26bf84a49ab2c5ffd2aa5487de
      path: packages/firebase_auth