tomgilder / flutter_apple_sign_in

Flutter Plugin for Sign In with Apple
MIT License
160 stars 71 forks source link

Flutter: After update xcode to 12 and running in IOS 14 not able to login to my app using apple ID.Also getting the issue The operation couldn’t be completed. (com.apple.AuthenticationServices.AuthorizationError error 1000.) #59

Open praveen-francium opened 3 years ago

praveen-francium commented 3 years ago

Plugin used: apple_sign_in: ^0.1.0

Screenshot 2020-09-25 at 9 50 18 AM


[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
[✓] Xcode - develop for iOS and macOS (Xcode 12.0)
[✓] Android Studio (version 3.5)
[✓] IntelliJ IDEA Community Edition (version 2019.3.1)
[✓] VS Code (version 1.49.0)
[✓] Connected device (1 available)
vlaushkin commented 3 years ago

The same issue.

Aanu1995 commented 3 years ago

I am experiencing the same issue.

dannycortesv commented 3 years ago

I'm also having this issue...

shunMB commented 3 years ago

I have the same issue. Confirmed I can use it on ios13, but not on ios14.

Also, here is my flutter doctor -v


[✓] Flutter (Channel unknown, 1.20.4, on Mac OS X 10.15.6 19G2021, locale ja-JP)
    • Flutter version 1.20.4 at /usr/local/bin/flutter
    • Framework revision fba99f6cf9 (2 weeks ago), 2020-09-14 15:32:52 -0700
    • Engine revision d1bc06f032
    • Dart version 2.9.2

[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
    • Android SDK at /Users/shunmanabe/Library/Android/sdk
    • Platform android-29, build-tools 29.0.2
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 12.0)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 12.0, Build version 12A7209
    • CocoaPods version 1.9.3

[✓] Android Studio (version 3.5)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 42.1.1
    • Dart plugin version 191.8593
    • Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405)

[✓] VS Code (version 1.49.2)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.14.1

[✓] Connected device (1 available)
    • iPhone 11 (mobile) • 1A29208A-E187-4324-870B-2353853C8A9E • ios •
      com.apple.CoreSimulator.SimRuntime.iOS-14-0 (simulator)

• No issues found!
shunMB commented 3 years ago

Just took a look at this package’s codes, then noticed this package is corresponding with only ios13. See flutter_apple_sign_in/ios/Classes/AppleSignInPlugin.m

    if (@available(iOS 13.0, *)) {
        if ([call.method isEqualToString:@"isAvailable"]) {
            result(@{@"isAvailable": @(true)});
            return;
        }
        else if ([call.method isEqualToString:@"performRequests"]) {
            [self performRequests:call result:result];
            return;
        } else if ([call.method isEqualToString:@"getCredentialState"]) {
            [self getCredentialState:call result:result];
            return;
        }
    } else {
        if ([call.method isEqualToString:@"isAvailable"]) {
            result(@{@"isAvailable": @(false)});
            return;
        }
    }

I’m not familiar with Objective-C. Does anyone can fix it to be avaialbe in ios14?

ioridev commented 3 years ago

So far, the IOS14 simulator is not running Apple sign-in. To see how Apple Sign In works, you need to use a real machine or an ios13 simulator. ...

see this thread on Apple's forums. https://developer.apple.com/forums/thread/651533.

Downgrade the ios simulator:

First install xcode-install gem: gem install xcode-install When check what iOS simulators are available: xcversion simulators Install desired simulator i.e: xcversion simulators --install='iOS 13.5'

Use the ios 13.5 version to test and develop the apple sign in.

Than set the iOS Deployment Target to 13.5

Test your application with the apple sign in, upload, submit for review. And thats it, there will be no problem with the review.

So this is not a flutter or package issue.

kleyos commented 3 years ago

So this is not a flutter or package issue. Yes. the package works. I run into the same problem on a real device too. I had upgraded firebase_auth to the latest release and it works like a charm ))

aTeamSolace commented 3 years ago

I'm having the same issue on the following device

Review device details:

on the rest of the versions It working fine. Anyone help me to solve this issue?