flutter_apple_sign_in icon indicating copy to clipboard operation
flutter_apple_sign_in copied to clipboard

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.)

Open praveen-francium opened this issue 3 years ago • 8 comments

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)

praveen-francium avatar Sep 25 '20 09:09 praveen-francium

The same issue.

vlaushkin avatar Sep 28 '20 22:09 vlaushkin

I am experiencing the same issue.

Aanu1995 avatar Sep 29 '20 08:09 Aanu1995

I'm also having this issue...

dannycortesv avatar Sep 29 '20 13:09 dannycortesv

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 avatar Sep 30 '20 04:09 shunMB

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?

shunMB avatar Sep 30 '20 09:09 shunMB

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.

ioridev avatar Oct 05 '20 09:10 ioridev

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 ))

kleyos avatar Nov 03 '20 09:11 kleyos

I'm having the same issue on the following device

Review device details:

  • Device type: iPad
  • OS version: iOS 14.4.1

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

aTeamSolace avatar Mar 31 '21 06:03 aTeamSolace