Skip to content

Apple Signin not working on ios 13.5.1 #103

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

Closed
puneetkansal04 opened this issue Jun 30, 2020 · 13 comments
Closed

Apple Signin not working on ios 13.5.1 #103

puneetkansal04 opened this issue Jun 30, 2020 · 13 comments

Comments

@puneetkansal04
Copy link

puneetkansal04 commented Jun 30, 2020

I am using apple signin and it is working on the first time and show me option for share my email popup. But when i logout and try to login again it doesn't show me share email option as well as i am not able to login again using the apple login. Can you provide me detail.

appleAuth.performRequest({
requestedOperation: AppleAuthRequestOperation.LOGIN,
requestedScopes: [AppleAuthRequestScope.EMAIL, AppleAuthRequestScope.FULL_NAME],
})

I am using above code for getting user info. and it is working fine on simulators and i am doing logout and then try to login then it works fine. but on the real device ios version 13.5.1 it is giving me error.

@mikehardy

@mikehardy
Copy link
Collaborator

Yo have not provided the error.
The library works in all cases I've tested, though behavior is possibly counter-intuitive.
Once you've allowed access to your app via your apple id, you actually manage that connection in your iCloud ID settings, apart from the app
And unless you revoke permission there you will never see the popup again.

@puneetkansal04
Copy link
Author

puneetkansal04 commented Jul 1, 2020 via email

@Lucasark
Copy link

Lucasark commented Jul 7, 2020

I saw many issues about this error here, and all closed by @mikehardy. Only say that library works and maybe is a error in settings about Apple ID is not helpful, and nothing is metioned in instruction install. I faced same error, but I know that is not about iOS version, because I have other app in same Iphone and use Sign Apple. So, is helpful attach here, or closed issues how to configure Apple ID or other third-party configuration in console apple.
Novo Projeto (1)
Novo Projeto
Here, I have iOS 13.1.2 and give me a error about iOS version, but I know that is mis configuration in settings. This is error is not clear about the real problem.

@mikehardy
Copy link
Collaborator

@Lucasark I close issues quite quickly when not provided any useful information to test, yes. Leaving them open as if something will happen is a disservice to everyone as it might provide false expectations.

The message presented vs your settings does seem incorrect. Can you provide a repo based on the example code that reproduces it?

@Lucasark
Copy link

Lucasark commented Jul 7, 2020

Maybe I am not clear in my last message. What I wanna say is that erro message is not good to track the real problem, which is about certification on Apple Developer Console, this is talk about in this step:
"Once you're sure you've met the above, please follow our Initial development environment setup guide.
But, see this error we understand that is about version of device. I have a video exemplo compile twice using SAME project code, SAME device and SAME Xcode and only diference is my signing configuration in both compile.
ezgif-6-78dc6fda7dac
One I have sucess to use Sign in with Apple and other don't with this error.

@mikehardy
Copy link
Collaborator

Very interesting - forgive me while I "active listen" here - I am going to try to say what you said, to see if I understand it

If you have not done the full iOS Developer Console setup for the app to enable apple sign in, then when you go to use it you get an error message about not having the right iOS version

Is that right? I am not 100% sure on the first part, but I am pretty sure I understand you've found the thing that causes a iOS version not supported message when really it has nothing to do with a version. Hopefully we can fix it

@Lucasark
Copy link

Lucasark commented Jul 7, 2020

Very interesting - forgive me while I "active listen" here - I am going to try to say what you said, to see if I understand it

If you have not done the full iOS Developer Console setup for the app to enable apple sign in, then when you go to use it you get an error message about not having the right iOS version

Is that right? I am not 100% sure on the first part, but I am pretty sure I understand you've found the thing that causes a iOS version not supported message when really it has nothing to do with a version. Hopefully we can fix it

Yes, it is my point!
Just to compare, in Google API Login, if we do mis configuration in Google Console (sha, key, or other thinks) we have code 10 error. But, if we trying use in unsupported device we have code 320. So, we can figure out where we do it wrong.
I suggestion to open a issue about that just to not lose this improve.

@alammoiz
Copy link

alammoiz commented Jul 8, 2020

I am using apple signin and it is working on the first time. But when i logout and try to login again it doesn't show me share email option as well as i am not able to login again using the apple login. Can you provide me detail.

appleAuth.performRequest({
requestedOperation: AppleAuthRequestOperation.LOGIN,
requestedScopes: [AppleAuthRequestScope.EMAIL, AppleAuthRequestScope.FULL_NAME],
})

I am using above code for getting user info. and it is working fine on simulators and i am doing logout and then try to login then it works fine. but on the real device ios version 13.5.1 it is giving me error.

Facing Same issue v13.5.1 @mikehardy

@puneetkansal04 Have you resolved that?

@mikehardy
Copy link
Collaborator

You only get the email the first time. You'll want to familiarize yourself with the underlying library documentation and implementation guides @alammoiz

@puneetkansal04
Copy link
Author

I am using apple signin and it is working on the first time. But when i logout and try to login again it doesn't show me share email option as well as i am not able to login again using the apple login. Can you provide me detail.

appleAuth.performRequest({
requestedOperation: AppleAuthRequestOperation.LOGIN,
requestedScopes: [AppleAuthRequestScope.EMAIL, AppleAuthRequestScope.FULL_NAME],
})

I am using above code for getting user info. and it is working fine on simulators and i am doing logout and then try to login then it works fine. but on the real device ios version 13.5.1 it is giving me error.

Facing Same issue v13.5.1 @mikehardy

@puneetkansal04 Have you resolved that?

Not Able to resolve it. As it also give me same error. As First times it works fine but as if you do login again. It is showing different popup and state not returning the data.

@mikehardy
Copy link
Collaborator

Apple sign in state is managed by user and Apple in icloud settings. If you want to reset a user to pristine you have to delete your server user and remove the app from icloud settings

@puneetkansal04
Copy link
Author

@mikehardy didn't get you how to remove the app from iCloud settings within the app using this package or any library. As Manually removal will be very much bulkier. Each timer user have to remove it manually.

@mikehardy
Copy link
Collaborator

Apple sign in is user focused, like Android notification channels. Once they are set up they are under user control. It's the way it is.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants